how to customize informations given by the navigation toolbar ?

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

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.loic@...287...> 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

It would be very fine to me, but unfortunately, I have to use matplotlib 0.91.2.
Is there a way to adapt this to the old transform API ?

Thanks

···


LB

Seems that the following lines did the trick with matplotlib 0.91.2

   xy_pixel = self.a3.transData.xy_tup((x3,y3))
   x1, y1 = self.a1.transData.inverse_xy_tup(xy_pixel)

Thanks

2009/10/16 LB <bravo.loic@…287…>

···

It would be very fine to me, but unfortunately, I have to use matplotlib 0.91.2.
Is there a way to adapt this to the old transform API ?

Thanks


LB