I am trying to plot a spectrum, with lower x axis = velocity, on the upper =
The relationship between them (doppler formula) is
f = (1-v/c)*f_0
where f is the resulting frequency, v the velocity, c the speed of light,
and f_0 the frequency at v=0, ie. the v_lsr.
I have tried to solve it by looking at
, where it is solved by
pm_to_kms = 1./206265.*2300*3.085e18/3.15e7/1.e5
aux_trans = matplotlib.transforms.Affine2D().scale(pm_to_kms, 1.)
ax_pm = ax_kms.twin(aux_trans)
well, my problem is that it is not a simple scaling law, but a linear
Anyone know how to solve this?
View this message in context: http://old.nabble.com/Twiny-and-affine-transform-for-xlim-tp29032627p29032627.html
Sent from the matplotlib - users mailing list archive at Nabble.com.