8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9ed974 commit 172893dCopy full SHA for 172893d
lib/mpl_toolkits/axes_grid1/parasite_axes.py
@@ -487,7 +487,7 @@ def host_axes(*args, **kwargs):
487
import matplotlib.pyplot as plt
488
axes_class = kwargs.pop("axes_class", None)
489
host_axes_class = host_axes_class_factory(axes_class)
490
- if "figure" in kwargs:
+ if kwargs.get("figure") != None:
491
fig = kwargs["figure"]
492
else:
493
fig = plt.gcf()
@@ -500,7 +500,7 @@ def host_subplot(*args, **kwargs):
500
501
502
host_subplot_class = host_subplot_class_factory(axes_class)
503
504
505
506
0 commit comments