Re: matplotlib - overlaying plots.

2009-05-14 Thread norseman
Ant wrote: Hi All, I am trying to get matplotlib to overlay a couple of graphs, but am getting nowhere. I originally thought that the following may work: x = [1,2,3,4,5] y = [2,4,6,8,10] y2 = [1,4,9,16,25] plot(x, y) plot(x, y2) Now this works as desired, however, the actual case I have i

Re: matplotlib - overlaying plots.

2009-05-14 Thread Ant
On May 14, 3:52 pm, Hyuga wrote: ... > On the other hand, I just took a peek at the matplotlib example > gallery, which is very diverse, and it has an example that I think is > exactly what you're looking > for:http://matplotlib.sourceforge.net/examples/api/two_scales.html Superb - spot on. Than

Re: matplotlib - overlaying plots.

2009-05-14 Thread Hyuga
On May 14, 7:41 am, Ant wrote: > Hi All, > > I am trying to get matplotlib to overlay a couple of graphs, but am > getting nowhere. I originally thought that the following may work: > > >>> x = [1,2,3,4,5] > >>> y = [2,4,6,8,10] > >>> y2 = [1,4,9,16,25] > >>> plot(x, y) > >>> plot(x, y2) > > Now t

matplotlib - overlaying plots.

2009-05-14 Thread Ant
Hi All, I am trying to get matplotlib to overlay a couple of graphs, but am getting nowhere. I originally thought that the following may work: >>> x = [1,2,3,4,5] >>> y = [2,4,6,8,10] >>> y2 = [1,4,9,16,25] >>> plot(x, y) >>> plot(x, y2) Now this works as desired, however, the actual case I hav