Skip to content

Commit 369842b

Browse files
committed
change pie chart default shape to circular (instead of oval)
1 parent 197bb59 commit 369842b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2674,6 +2674,8 @@ def pie(self, x, explode=None, labels=None, colors=None,
26742674
The pie chart will probably look best if the figure and axes are
26752675
square, or the Axes aspect is equal.
26762676
"""
2677+
self.set_aspect('equal')
2678+
26772679
x = np.array(x, np.float32)
26782680

26792681
sx = x.sum()

0 commit comments

Comments
 (0)