Closed
Description
The Axes3D
calls set_title
with an empty loc
parameter, which throws an error.
/usr/local/lib/python2.7/dist-packages/mpl_toolkits/mplot3d/axes3d.pyc in set_title(self, label, fontdict, **kwargs)
2362
2363 def set_title(self, label, fontdict=None, **kwargs):
-> 2364 Axes.set_title(self, label, fontdict, **kwargs)
2365 (x, y) = self.title.get_position()
2366 self.title.set_y(0.92 * y)
/usr/local/lib/python2.7/dist-packages/matplotlib/axes.pyc in set_title(self, label, loc, fontdict, **kwargs)
3216 title = {'left': self._left_title,
3217 'center': self.title,
-> 3218 'right': self._right_title}[loc.lower()]
3219 except KeyError:
3220 raise ValueError("'%s' is not a valid location" % loc)
AttributeError: 'NoneType' object has no attribute 'lower'
If the loc
parameter is passed explicitly to set_title
:
p, ax = plt.subplots(subplot_kw={'projection': '3d'})
ax.set_title('Title', loc='center')
the loc
parameter is passed twice, and the following error occurs:
/usr/local/lib/python2.7/dist-packages/mpl_toolkits/mplot3d/axes3d.pyc in set_title(self, label, fontdict, **kwargs)
2362
2363 def set_title(self, label, fontdict=None, **kwargs):
-> 2364 Axes.set_title(self, label, fontdict, **kwargs)
2365 (x, y) = self.title.get_position()
2366 self.title.set_y(0.92 * y)
TypeError: set_title() got multiple values for keyword argument 'loc'
Metadata
Metadata
Assignees
Labels
No labels