Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d38be2

Browse files
rcomertacaswell
andauthored
make _MinimalArtist.get_figure consistent with Artist.get_figure
Co-authored-by: Thomas A Caswell <[email protected]>
1 parent 8fc4464 commit 9d38be2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4760,7 +4760,10 @@ def __init__(self, figure, artists):
47604760
self.artists = artists
47614761

47624762
def get_figure(self, root=False):
4763-
return self.figure
4763+
if root:
4764+
return self.figure.get_figure(root=True)
4765+
else:
4766+
return self.figure
47644767

47654768
@martist.allow_rasterization
47664769
def draw(self, renderer):

0 commit comments

Comments
 (0)