On 2013/01/26 5:16 PM, Todamont wrote: > I'm charting financial data, so scientific notation is unwanted in ALL cases. > Sometimes if I pass it data with just a few trades right near each other, it > scales so the y-axis get set to some bizare exponent, like 1.7321e1. By the > way, why would anyone ever want a plot in scientific notation where the > exponent is not a power of 10? It makes absolutely no sense whatsoever that > it would do that, it is a bug. > > So, here is the code I'm trying to use to force matplotlib to NOT use > scientific notation on the y-axis, unsuccesfully: > > formatter = ScalarFormatter() > formatter.set_scientific(False) > formatter.set_powerlimits((-10000,10000)) > pl.yaxis.set_major_formatter(FuncFormatter(lambda x, pos: '%.0f'%x)) > pl.yaxis.set_major_formatter(formatter) > pl.yaxis.set_minor_formatter(FuncFormatter(lambda x, pos: '%.0f'%x)) > pl.yaxis.set_minor_formatter(formatter) > pl.set_autoscaley_on(False) > yfm = pl.yaxis.get_major_formatter() > yfm.set_powerlimits([ -10000, 10000]) > > > None of these attempts to turn off scientific notation is working. Any > suggestions? Please?
Please provide a minimal script illustrating the problem, that is, triggering the unwanted axis handling. Eric > > > > -- > View this message in context: > http://matplotlib.1069221.n5.nabble.com/Matplotlib-INSISTS-on-using-scientific-notation-how-do-I-make-it-STOP-tp40320.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnnow-d2d > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users