solldavid / TwistPy

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

Plot frequency in log scale #5

Open okling opened 1 year ago

okling commented 1 year ago

Hi David,

Is it possible to add an option to plot the frequency of polarization analysis and filtering in log scale?

Thanks for your help!

Best, Angel

solldavid commented 1 year ago

Hi Angel,

I have added the option to plot the frequency axis in log scale for 3C polarization analysis in the time-frequency domain. Use the option log_frequency=True in the plot() method of a 'TimeFrequencyAnalysis3C' object. This is documented here.

Note that the logarithmic axis is purely for visualisation purposes. The time-frequency polarization attributes are still computed using a linear frequency axis. The reason being that the S-transform, as currently implemented, does not support logarithmic frequency sampling.

I am leaving this issue open, as I might add the same option for 6C polarization analysis in the future.

Best,

David

okling commented 1 year ago

Thanks David! It's good enough for now.