TwistPy icon indicating copy to clipboard operation
TwistPy copied to clipboard

Plot frequency in log scale

Open okling opened this issue 2 years ago • 2 comments

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

okling avatar Dec 07 '22 14:12 okling

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

solldavid avatar Dec 08 '22 14:12 solldavid

Thanks David! It's good enough for now.

okling avatar Dec 09 '22 11:12 okling