Re: [Matplotlib-users] Number of decimal places

2012-02-23 Thread Eric Firing
On 02/23/2012 01:13 AM, Nils Wagner wrote: > Hi all, > > How can I increase the number of decimal places in yticks ? One way is to install mpl from git master. The ScalarFormatter handles this situation better now: In [15]: print '\n'.join([tl.get_text() for tl in ax.get_yticklabels()]) $\mathd

[Matplotlib-users] Number of decimal places

2012-02-23 Thread Nils Wagner
Hi all, How can I increase the number of decimal places in yticks ? Nils from matplotlib.ticker import ScalarFormatter formatter = ScalarFormatter(useMathText=True,useOffset=False) formatter.set_scientific(True) formatter.set_powerlimits((-12,12)) print dir (formatter) import matplotlib.py