John

am trying to make a plot something along the lines of the attached. This has a single plot area with separate y-axes on either side of the plot, rather than two plot areas, each with their own axis

Best regards

Alun Griffiths

At 14:24 06/11/2006, John Hunter wrote:
>>>>> "Etrade" == Etrade Griffiths <[EMAIL PROTECTED]> writes:

    Etrade> Hi new to Matplotlib and struggling to make a plot that
    Etrade> has three lines plotted on it: two are supposed to plot on
    Etrade> the LH y axis and the third on the RH y axis.  The code so
    Etrade> far is


         ax1 = fig.add_axes([0.1, 0.1,  0.8, 0.8])
         ax2 = fig.add_axes([0.9, 0.1, -0.8, 0.8])
                                         ^
                            [left, bottom, width, height]

negative numbers are not supported.  I don't know what kind of layout
you want, but start with something like


         ax1 = fig.add_axes([0.1, 0.1,  0.4, 0.8])
         ax2 = fig.add_axes([0.55, 0.1,  0.4, 0.8])

and once you have a working plot tweak from there.

JDH

Attachment: example_plot.pdf
Description: Adobe PDF document

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to