From f30358b6ce601631a36442d8b97aba56b734d77c Mon Sep 17 00:00:00 2001 From: David Stansby Date: Sat, 2 Jan 2021 11:43:39 +0000 Subject: [PATCH] Request an autoscale at the end of ax.pie() --- lib/matplotlib/axes/_axes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index ead143489a3b..4dab1536cb17 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -3146,7 +3146,9 @@ def get_next_color(): theta1 = theta2 - if not frame: + if frame: + self._request_autoscale_view() + else: self.set(frame_on=False, xticks=[], yticks=[], xlim=(-1.25 + center[0], 1.25 + center[0]), ylim=(-1.25 + center[1], 1.25 + center[1]))