This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Size of pie chart in matplotlib (frame affects it)
Type: Stage: resolved
Components: Versions: Python 3.7
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: mark.dickinson, twisterior
Priority: normal Keywords:

Created on 2021-01-26 13:46 by twisterior, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg385713 - (view) Author: Robert (twisterior) Date: 2021-01-26 13:46
Hi all.

Is it an issue or on purpose that enabling and disabling the frame in plt.pie() results in different sized pie charts? In my opinion the code below should provide identical sized charts. If it is on purpose, can you give me a reference? I am using the conda version of pyhton but colleagues experience the same behavior.

import matplotlib.pyplot as plt
f = plt.figure(figsize=(10,5),dpi=300)
ax1 = f.add_axes([0,0,0.5,1])
ax2 = f.add_axes([0.5,0,0.5,1])
ax1.pie([180,180],center=(0.5,0.5),radius=0.5,frame=False)
ax2.pie([180,180],center=(0.5,0.5),radius=0.5,frame=True)
plt.show()
msg385714 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2021-01-26 13:49
Wrong tracker, I'm afraid. This tracker is for the Python core language. Try https://github.com/matplotlib/matplotlib/issues
History
Date User Action Args
2022-04-11 14:59:40adminsetgithub: 87198
2021-01-26 13:49:37mark.dickinsonsetstatus: open -> closed

nosy: + mark.dickinson
messages: + msg385714

resolution: third party
stage: resolved
2021-01-26 13:46:44twisteriorcreate