Skip to content

Commit

Permalink
use ax.get_figure to fetch figure
Browse files Browse the repository at this point in the history
  • Loading branch information
SarthakJariwala committed Dec 7, 2023
1 parent 0f3114f commit 6f0d438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/seaborn_image/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _setup_figure(self):
if self.ax is None:
f, ax = plt.subplots()
else:
f = plt.gcf()
f = self.ax.get_figure() or plt.gcf()
ax = self.ax

return f, ax
Expand Down

0 comments on commit 6f0d438

Please sign in to comment.