Skip to content

Commit 987ea48

Browse files
authored
Merge pull request #19217 from dstansby/pie-autoscale
Request an autoscale at the end of ax.pie()
2 parents e26f544 + f30358b commit 987ea48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/axes/_axes.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -3146,7 +3146,9 @@ def get_next_color():
31463146

31473147
theta1 = theta2
31483148

3149-
if not frame:
3149+
if frame:
3150+
self._request_autoscale_view()
3151+
else:
31503152
self.set(frame_on=False, xticks=[], yticks=[],
31513153
xlim=(-1.25 + center[0], 1.25 + center[0]),
31523154
ylim=(-1.25 + center[1], 1.25 + center[1]))

0 commit comments

Comments
 (0)