[Matplotlib-users] Cursor position

2010-10-07 Thread Thomas Robitaille
Hi, I am using matplotlib with the MacOSX backend. If I run: import matplotlib matplotlib.use('MacOSX') import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(1,1,1) the cursor coordinates are missing from the bottom right of the window. If I click on the figure, the

[Matplotlib-users] Cursor position

2009-08-24 Thread Thomas Robitaille
Hi, I'm interested in controlling how the cursor position appears at the bottom of interactive windows. I noticed that by default, it is the Formatter that gets called. However, in my case, the displayed coordinates each depend on both the x and y pixel value, and therefore I need to somehow

Re: [Matplotlib-users] Cursor position

2009-08-24 Thread Jae-Joon Lee
On Mon, Aug 24, 2009 at 1:14 PM, Thomas Robitaillethomas.robitai...@gmail.com wrote: Hi, I'm interested in controlling how the cursor position appears at the bottom of interactive windows. I noticed that by default, it is the Formatter that gets called. However, in my case, the displayed

Re: [Matplotlib-users] Cursor position

2009-08-24 Thread Thomas Robitaille
I think the easiest solution is to override the Axes.format_coord. For example, ax = gca() ax.format_coord = lambda x,y : x=%g y=%g % (x, y) x,y are in data coordinate. I'm not sure if there is any side effect, but it seems that the format_coord method is only used to display the