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 d6ec786 commit 1a0021bCopy full SHA for 1a0021b
lib/matplotlib/figure.py
@@ -758,7 +758,12 @@ def add_subplot(self, *args, **kwargs):
758
projection)
759
projection = 'polar'
760
761
- projection_class = get_projection_class(projection)
+ if isinstance(projection, basestring) or projection is None:
762
+ projection_class = get_projection_class(projection)
763
+ else:
764
+ projection_class, extra_kwargs = projection._as_mpl_axes()
765
+ # XXX Do the extra arguments need to be hashable???
766
+ kwargs.update(**extra_kwargs)
767
768
# Remake the key without projection kwargs:
769
key = self._make_key(*args, **kwargs)
0 commit comments