Re: [Matplotlib-users] mouse coordinate precision in figures

2008-01-05 Thread Jack Sankey
Thanks guys! You can also just skip a step and go: gca().fmt_xdata = str gca().fmt_ydata = str :) I changed it in Axes.py. It would be cool if there was something in matplotlibrc, but now that I understand how it works, it's no biggy to me. Take care, Jack On Jan 4, 2008 9:18 AM, John Hunter

Re: [Matplotlib-users] mouse coordinate precision in figures

2008-01-04 Thread Michael Droettboom
You can also set a custom formatter for each axis without hacking the matplotlib code:: def custom_formatter(value): return str(value) gca().fmt_xdata = custom_formatter gca().fmt_ydata = custom_formatter We may want to add a cleaner (more obvious) API for this -- but there

Re: [Matplotlib-users] mouse coordinate precision in figures

2008-01-04 Thread John Hunter
On Jan 4, 2008 7:32 AM, Michael Droettboom [EMAIL PROTECTED] wrote: You can also set a custom formatter for each axis without hacking the matplotlib code:: def custom_formatter(value): return str(value) gca().fmt_xdata = custom_formatter gca().fmt_ydata = custom_formatter

[Matplotlib-users] mouse coordinate precision in figures

2007-12-22 Thread Jack Sankey
Hello, When you make a figure and move the mouse around inside the axes, the x- and y-values appear in the status bar. Is there a way to change the precision of this data? It's only tracking 3 significant figures and I need more (say you're zoomed in on some data with a large offset). Is there a

Re: [Matplotlib-users] mouse coordinate precision in figures

2007-12-22 Thread Yongtao Cui
Hi Jack, In \matplotlib\axes.py, Axes.format_xdata() func = self.xaxis.get_major_formatter().format_data_short -func = self.xaxis.get_major_formatter().format_data same for Axes.format_ydata() -Yongtao On Dec 22, 2007 1:46 PM, Jack Sankey [EMAIL PROTECTED] wrote: Hello, When you make a