Hz.twin(aux_trans)
> ax_mm.set_xlabel('Wavelength (mm)')
> ax_mm.set_viewlim_mode("transform")
> ax_mm.axis["right"].toggle(ticklabels=False)
>
> ax_GHz.plot(xvals, data)
> ax_GHz.set_xlim(200, 1000)
>
> plt.draw()
> plt.show()
>
>
>
Hi,
I've made a matplotlib plot with frequency on the x-axis, and I would
like to add an additional x-axis at the top that is measured in
wavelength , i.e. wavelength = 3e8 / frequency
Is there anyway to do this transformation automatically in matplotlib?
I tried to give a transformation argu