solldavid / TwistPy

Toolbox for Wavefield Inertial Sensing Techniques
GNU Lesser General Public License v3.0
25 stars 7 forks source link

Saving polarization attribute plot #6

Closed okling closed 1 year ago

okling commented 1 year ago

Hi David,

Is it possible to add an option to save the polarization attribute plot of polarization analysis and filtering?

Thanks!

Best, Angel

solldavid commented 1 year ago

Hi Angel,

You should be able to save the current plot with the standard matplotlib tools. For example, to save a PDF file:

import matplotlib.pyplot as plt
from twistpy.polarization import TimeFrequencyAnalysis3C
analysis = TimeFrequencyAnalysis3C(...)
analysis.plot()
plt.savefig('your_figure_name.pdf')

Best,

David

okling commented 1 year ago

Thanks David!