On Wed, Dec 7, 2011 at 11:08 AM, claudius <clau_...@yahoo.com> wrote:
>
> I would like to draw a round pie in a rectangle figure. At the moment I'm
> using something like:
>
> fig = plt.figure( figsize = figsize, dpi=inch)
>
> # plot actually
> ax = fig.add_subplot( 1, 1, 1 )
> ax.pie( value_list, labels = labels_list, **kwargs )
>
> plt.savefig( plt_pathname )
> plt.close()
>
> If the figsize is not square ( eg. [4, 4]) then the resulting figure will
> be
> stretched, elipsoid.
> Can I overcome this issue.
> Thanks in advance
>
> You can set the aspect of the axes object:
ax.set_aspect('equal')
Best,
-Tony
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users