Round pie in non square figure size

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

···

--
View this message in context: http://old.nabble.com/Round-pie-in-non-square-figure-size-tp32929787p32929787.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

You can set the aspect of the axes object:

ax.set_aspect(‘equal’)

Best,
-Tony

···

On Wed, Dec 7, 2011 at 11:08 AM, claudius <clau_sav@…9…> 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