Hi, I am making a simple pie chart that needs to be small ~3x3 inches. The problem I am having is that the text labels get pushed out side the figure. Is there anyway to make the plot smaller relative to the figure size? Here is my code and the resulting plot:
from pylab import *

# make a square figure and axes
figure(1, figsize=(3,3))
ax = axes([0.0, 0.0, 1.0, 0.9])

labels = 'Central\nCampus','Medical\nCampus','North\nCampus'
fracs = [880,220,1000]

explode=(0.05, 0.05, 0.05)
ppl=pie(fracs, explode=explode, labels=labels, shadow=True,autopct='%1.0f%%')

title('GSRAs by Campus')

<<attachment: pie_chart.png>>

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to