Re: [Matplotlib-users] two scales in the same plot

2009-04-29 Thread Ondrej Certik
On Fri, Apr 24, 2009 at 1:10 PM, Sandro Tosi wrote: > Hi Ondrej, > nice to see you here :) Nice to see you too! :) > > On Fri, Apr 24, 2009 at 22:02, Ondrej Certik wrote: >> Hi, >> >> is there a way to have one plot with two functions, one using some >> scale, the other one a different scale an

Re: [Matplotlib-users] two scales in the same plot

2009-04-24 Thread Jouni K . Seppänen
Ondrej Certik writes: > is there a way to have one plot with two functions, one using some > scale, the other one a different scale and show for example one scale > on the left, the other scale on the right? Yes, with twinx: see http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=t

Re: [Matplotlib-users] two scales in the same plot

2009-04-24 Thread Ryan May
On Fri, Apr 24, 2009 at 3:02 PM, Ondrej Certik wrote: > Hi, > > is there a way to have one plot with two functions, one using some > scale, the other one a different scale and show for example one scale > on the left, the other scale on the right? > > I want to plot an atomic potential (one scale

Re: [Matplotlib-users] two scales in the same plot

2009-04-24 Thread Sandro Tosi
Hi Ondrej, nice to see you here :) On Fri, Apr 24, 2009 at 22:02, Ondrej Certik wrote: > Hi, > > is there a way to have one plot with two functions, one using some > scale, the other one a different scale and show for example one scale > on the left, the other scale on the right? sure, twinx() i

[Matplotlib-users] two scales in the same plot

2009-04-24 Thread Ondrej Certik
Hi, is there a way to have one plot with two functions, one using some scale, the other one a different scale and show for example one scale on the left, the other scale on the right? I want to plot an atomic potential (one scale) and the corresponding wave functions (different scale) in the same