Hi, list-

This question has been asked before, but all of my search results don't 
address my problem:
<code>
fig = figure(1, figsize=(3.25, 3))
plot([0,1,5,2,9])
title('title')
xlabel('xAxis')
ylabel('yAxis')
fig.savefig('test.png',dpi=600)
</code>
The resulting figure is 2040x1890 pixels, or 3.4"x3.15", and the xlabel 
is cut off.  Looking at the PNG file in an image editor, it appears that 
the axes and ticklabels fit the desired size.  I've tried taking the 
difference from the output size and requested size and feeding that back 
in (3.25 - (3.4-3.25) = 3.10, but matplotlib seems to add an arbitrary 
buffer and it still doesn't come out to the desired size.  How does one 
make an overall figure that is the desired size?

Thanks,
Ethan

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to