Matthew Auger wrote:
> Ah...right. That works well enough (I believe that I originally had 
> editted backend_bases to circumvent the format_coord call--clearly not 
> the best solution)! I don't know of a good reason to *not* use the axis 
> formatting, but perhaps an rcparam could control this?

I don't know what the historical reason for the present default is, but 
one candidate is speed: the coordinate numbers get reformatted and 
printed at a great rate as the cursor moves across a plot, so one might 
not want to have the formatting done by a big chunk of python code. 
format_data_short will typically be faster than format_data.

An rcParam certainly could be added, given sufficient demand.

Now, I'm wondering why the number of digits is actually important to 
you--are you writing those numbers down?  If so, would you rather 
capture the numbers to a file upon clicking? examples/zoom_window.py 
shows how to grab the coordinates at which a button was clicked.  There 
may be better examples, but this is the first one I found.

Eric

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to