From: John H. <jdh...@ac...> - 2005-10-25 02:01:07
|
>>>>> "Miles" == Miles Lubin <mi...@lu...> writes: Miles> Hi, I'm trying to make a histogram. matplotlib makes it Miles> perfectly, except for the numbering on the y axis, which it Miles> changes by a factor of e4, example: Miles> http://junker.org/~mlubin/hist.jpg. How can I make it use Miles> standard notation instead of scientific notation? You can change the tick formatter by setting the yaxis "major tick formatter". See the help for the matplotlib ticker module in the online class docs, the chapter of the User's Guide on tick locators and formatters, and the examples major_minor_demo*.py. In particular, you will probably want a FormatStrFormatter http://matplotlib.sf.net/matplotlib.ticker.html#FormatStrFormatter JDH |