Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Description
Adding a self-made Patch3DCollection to Axes3D fails.
from matplotlib import pyplotfrom mpl_toolkits import mplot3df = pyplot.figure()ax = f.add_subplot(111, projection='3d')ax.add_collection(mplot3d.art3d.Patch3DCollection([]))pyplot.show() # Shows gray area, no empty axes.
The failing part is
/usr/local/lib/python2.7/dist-packages/mpl_toolkits/mplot3d/art3d.pyc in do_3d_projection(self, renderer)
316
317 def do_3d_projection(self, renderer):
--> 318 xs, ys, zs = self._offsets3d
319 vxs, vys, vzs, vis = proj3d.proj_transform_clip(xs, ys, zs, renderer.M)
320 #FIXME: mpl allows us no way to unset the collection alpha value
AttributeError: 'Patch3DCollection' object has no attribute '_offsets3d'