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 > > We may want to add a cleaner (more obvious) API for this -- but there > might be good reasons that it works this way that I just don't know about.
There is no particularly good reason and it is not terribly consistent with the rest of the API, which tends to use function calls more than attribute settings. It works well enough and there is plenty of code (mine for example) that utilizes it. The major problem is that it is not easy for users to find. JDH ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users