One way is to specify the axes manually, e.g. setting: (with matyplotlib.pyplot importad as plt:)
plt.axis([200, 500, -600, 600]) ...or whatever seems fitting for you, and do that on both of the y axes. That should align them nicely. On Sat, 2010-07-17 at 20:37 +0200, Daniele Padula wrote: > Hi everybody, > I have a problem with a plot. I attach a figure to be easily understandable. > > As you can see from the figure, I have in the same area a line and a bar > plot. The problem is that y=0 for right y axis is different with respect > to left y axis one. I want the two y=0 to be the same. > > How can i do that? > > Excuse me for my bad english, I'm italian :) > > Thanks in advance. > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users