Re: [Matplotlib-users] plotyy equivalent example -- png output

2010-04-29 Thread James Jack
Thank you Matthias :) I think the problem here is that I never found an example showing 'twin' scales, so I botched it to get the same result! Cheers James -- ___ Matplotlib-use

Re: [Matplotlib-users] plotyy equivalent example -- png output

2010-04-29 Thread Matthias Michler
On Thursday 29 April 2010 15:02:34 James Jack wrote: > Below is the working code to plot two different data series with different > units on the same graph, with the same x co-ordinates: > > > > import pylab > # generate some data > x = range(0, 10) > y1 = [i*i for i in x] > y2 = [pylab.sin(0.4*i)

[Matplotlib-users] plotyy equivalent example -- png output

2010-04-29 Thread James Jack
Below is the working code to plot two different data series with different units on the same graph, with the same x co-ordinates: import pylab # generate some data x = range(0, 10) y1 = [i*i for i in x] y2 = [pylab.sin(0.4*i) for i in x] # the data share x axis but have different y units figure