From: Darren D. <dar...@co...> - 2008-02-29 16:30:44
|
On Friday 29 February 2008 11:15:20 am Matthieu Brucher wrote: > > You can either set your axes.formatter.limits rc setting to something > > like 4, > > or you can make your axes smaller in the figure, like > > axes([0.25,0.125,0.7,0.85]) > > Thanks for this. I tried the first one (I can't make the figure smaller > ;)), but I got this result : > > File "images.py", line 14, in <module> > pl.rcParams['axes.formatter.limits']=4 > File > "/home/brucher/local/lib/python2.5/site-packages/matplotlib/__init__.py", > line 552, in __setitem__ > cval = self.validate[key](val) > File > "/home/brucher/local/lib/python2.5/site-packages/matplotlib/rcsetup.py", > line 119, in __call__ > assert type(s) in (list,tuple) > > with : > >>> import pylab as pl > >>> pl.rcParams['axes.formatter.limits']=4 You might try checking what the existing values are: >>> rcParams['axes.formatter.limits'] [-7, 7] and try: rcParams['axes.formatter.limits']=[-4,4] |