Re: [Matplotlib-users] question about example of override the default reporting of coords

2012-05-31 Thread Michael Droettboom
On 05/31/2012 10:12 AM, Tony Yu wrote: On Thu, May 31, 2012 at 10:03 AM, Mark Bakker > wrote: OK. Got it. That is not what I was looking for. But, why the leading $ sign? Just as an example? The $ sign shows up in the cursor coordinate now. Is that what

Re: [Matplotlib-users] question about example of override the default reporting of coords

2012-05-31 Thread Tony Yu
On Thu, May 31, 2012 at 10:03 AM, Mark Bakker wrote: > OK. Got it. That is not what I was looking for. > > But, why the leading $ sign? Just as an example? The $ sign shows up in > the cursor coordinate now. Is that what was supposed to happen (it is > confusing with the $ sign also being used fo

Re: [Matplotlib-users] question about example of override the default reporting of coords

2012-05-31 Thread Mark Bakker
OK. Got it. That is not what I was looking for. But, why the leading $ sign? Just as an example? The $ sign shows up in the cursor coordinate now. Is that what was supposed to happen (it is confusing with the $ sign also being used for mathtext formatting, as you know). Thanks, Mark On Thu, May

Re: [Matplotlib-users] question about example of override the default reporting of coords

2012-05-31 Thread Tony Yu
On Thu, May 31, 2012 at 9:31 AM, Mark Bakker wrote: > I looked at the example of overriding the default reporting of coords, > which is here: > > http://matplotlib.sourceforge.net/examples/pylab_examples/coords_report.html > > from pylab import * > > def millions(x): > return '$%1.1fM' % (x*1e-6)

[Matplotlib-users] question about example of override the default reporting of coords

2012-05-31 Thread Mark Bakker
I looked at the example of overriding the default reporting of coords, which is here: http://matplotlib.sourceforge.net/examples/pylab_examples/coords_report.html from pylab import * def millions(x): return '$%1.1fM' % (x*1e-6) x = rand(20) y = 1e7*rand(20) ax = subplot(111) ax.fmt_ydata = mill