Re: [Matplotlib-users] Dual x-axes with transformation

2010-05-26 Thread Sarah Graves
Brilliant, that worked perfectly! Thanks very much, Sarah Jae-Joon Lee wrote: > You need to define your own transform. And the best way is to read > through the transforms.py. Here is a modified version of your example > that uses a custom transform. > > However, often you may need to use a custo

Re: [Matplotlib-users] Dual x-axes with transformation

2010-05-26 Thread Jae-Joon Lee
You need to define your own transform. And the best way is to read through the transforms.py. Here is a modified version of your example that uses a custom transform. However, often you may need to use a custom locator also for this kind of transform. HTH, -JJ from matplotlib.transforms import

[Matplotlib-users] Dual x-axes with transformation

2010-05-26 Thread Sarah Graves
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