mph-/lcapy

Plot with f in axes rather than with omega for lcapy.exprclasses.AngularFrequencyResponseDomainTransferFunction

Kreijstal opened this issue · 3 comments

I see this class has plot and you can even edit some matplotlib options, but it seems it forces you to plot everything as rad/s rather than Hz, and with no way to change it. Maybe add an option to the plot options, or return the values so we can plot it ourselves?

mph- commented

Lcapy uses rad/s for angular frequency domains and Hz for linear frequency domains.

For example,

H = 1 / (0.1 + s)
H(jf).plot()
H(jw).plot()

By default Bode plots use Hz

H.bode_plot()

oh thank you for showing me the syntax, that being said once you have extracted the function, there is no way to convert it back?

mph- commented

Sorry, I'm not sure what you mean. You can interchangeably transform between domains.