|
From: Ryan K. <rya...@gm...> - 2006-06-23 13:13:56
|
I have a similar problem because I use bigfonts. If you are going to make a lot of these plots, you can change the default for left, bottom, height, and width in your matplotlibrc file. Look for the lines: figure.subplot.left : 0.15 #0.125 # the left side of the subplots of the figure figure.subplot.right : 0.925 # the right side of the subplots of the fig= ure figure.subplot.bottom : 0.125 # the bottom of the subplots of the figure figure.subplot.top : 0.925 # the top of the subplots of the figure matplotlib looks for this rc file first in the working directory and then in your home directory (possibly looking in other places along the way). So, you could put a copy of matplotlibrc in the directory where you are making a lot of these plots if you don't want to change the bottom setting for all your plots. Ryan On 6/23/06, dd...@ja... <dd...@ja...> wrote: > On Friday 23 June 2006 8:12 pm, Johan Fredrik =D8hman wrote: > > Hi, > > > > I made a plot where the values on the X-axis are dates, "JUN, JUL, > > AUG.. etc ". To make them fit better, I have rotated the text using > > setp(labels, rotation=3D45, size=3D8), the problem is that the text is > > "clipped" in bottom. How can I expand the boundries? Thanks !! > > > > Instead of this... > > ax =3D subplot(111) > > Try this... > fig =3D figure(num=3D1, figsize=3D(2,2)) > ax =3D fig.add_axes([left, bottom, width, height]) > > Start with left=3D0.1, bottom=3D0.1, width=3D0.8, height=3D0.8 and see ho= w > that looks. Adjust the values of bottom and/or height until your > labels are no longer clipped. > > > > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job ea= sier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |