Fabrice Silva wrote:
> Le mardi 09 septembre 2008 à 08:26 -0400, Michael Droettboom a écrit :
>> You can use
>>     def ticklabel_format(self, **kwargs):
> It did not figure how to use that!
> I've tried in ipython :
>         import numpy as np
>         t = np.linspace(0,1,1024)
>         f = np.sin(10*t)/1e5
>         plot(t,f)
>         ax = gca()
>         ax.ticklabel_format(style='sci', axis='y')


>         show()
> but the yticklabels are still in plain notation...
> I've googled, but I still can not find where I am wrong!

Yes, this is confusing. The problem is that the "scientific" style uses 
scientific notation only for sufficiently large or small numbers, with 
thresholds determined by the powerlimits parameter.  The line I added 
above will force scientific notation.

The ticklabel_format method needs another kwarg to enable setting the 


This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
Matplotlib-users mailing list

Reply via email to