You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw this tagged as a good first issue and I started looking at it. Not only using plt.axis("image") works, also with equal and scaled.
I checked the code in pyplot.py and _axes.py and I fail to see clearly what should be modified in order to make it by default, but with a bit of guidance I would take the issue.
@tacaswell I don't think so, the examples in versions 1.3, 1.4, 1.5, 2.0 all have some line with plt.axis("equal") or ax1.axis('equal') in them. (Which is of course not a sufficient criterium 🙈)
As a what's new entry I could imagine the following:
We acknowledge that the majority of people do not like egg-shaped pies. Therefore, an axes to which a pie chart is plotted will be set to have equal aspect ratio by default. This ensures that the pie appears circular independent on the axes size or units. To revert to the previous behaviour you may set the axes' aspect to automatic, ax.set_aspect("auto") or plt.axis("auto").
Activity
Imanflow commentedon Mar 26, 2018
I saw this tagged as a good first issue and I started looking at it. Not only using
plt.axis("image")works, also withequalandscaled.I checked the code in
pyplot.pyand_axes.pyand I fail to see clearly what should be modified in order to make it by default, but with a bit of guidance I would take the issue.ImportanceOfBeingErnest commentedon Mar 26, 2018
I should think this is as easy as adding
in the
piemethod ofAxesin_axes.py(around line 2792 of the current master).But it should probably get a "what's new"-entry.
Imanflow commentedon Mar 26, 2018
the what's new entry could be something like:
Circular pie charts by default
Added equal aspect to the axes in
plt.pieby default to ensure a circular image.What do you think?
tacaswell commentedon Mar 27, 2018
This seems like a very odd oversite, is this a regression from earlier versions of Matplotlib?
ImportanceOfBeingErnest commentedon Mar 27, 2018
@tacaswell I don't think so, the examples in versions 1.3, 1.4, 1.5, 2.0 all have some line with
plt.axis("equal")orax1.axis('equal')in them. (Which is of course not a sufficient criterium 🙈)As a what's new entry I could imagine the following:
Imanflow commentedon Mar 27, 2018
apparently @jerrylui803 was working on it without commenting here... he opened a pullrequest yesterday.
#10887