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

Skip to content

Commit 9253f3d

Browse files
rcomertacaswell
andcommitted
make _MinimalArtist.get_figure consistent with Artist.get_figure
Co-authored-by: Thomas A Caswell <[email protected]>
1 parent 279cd8f commit 9253f3d

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
@@ -4754,7 +4754,10 @@ def __init__(self, figure, artists):
47544754
self.artists = artists
47554755

47564756
def get_figure(self, root=False):
4757-
return self.figure
4757+
if root:
4758+
return self.figure.get_figure(root=True)
4759+
else:
4760+
return self.figure
47584761

47594762
@martist.allow_rasterization
47604763
def draw(self, renderer):

0 commit comments

Comments
 (0)