It is possible but not so fancy.

Regards,

-JJ

clf()
ax1= subplot(111)
ax2= ax1.twiny()
ax2.set_xlim(0,10)

def report_ax1ax2(x2, y2):
    # x2, y2 : data coordinate in ax2
    xy_pixel = ax2.transData.transform_point((x2,y2))
    x1, y1 = ax1.transData.inverted().transform_point(xy_pixel)
    return "x1=%f x2=%f y=%f" % (x1, x2, y2)

ax2.format_coord = report_ax1ax2




On Thu, Oct 15, 2009 at 5:58 AM, LB <bravo.l...@gmail.com> wrote:
>    Hi,
>
>
> I'm using the twiny fonction to plot two functions on the same axes.
> I would like to have both informations displayed on the navigation bar.
> Now, I have :
>   pan/zoom : x=220, y=80
>
> Is-it possible to customize the toolbar in order to have
>   pan/zoom : x1=220, x2=300, y=80
>
>
> --
> LB
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to