Permalink
Browse files

Added zdir kwarg to Line3D.__init__

  • Loading branch information...
1 parent ecbc43e commit 2bd8fae0a983a929a2fb016353e840b3aae2c61c Thomas A Caswell committed Dec 31, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/mpl_toolkits/mplot3d/art3d.py
View
6 lib/mpl_toolkits/mplot3d/art3d.py
@@ -94,12 +94,14 @@ class Line3D(lines.Line2D):
3D line object.
'''
- def __init__(self, xs, ys, zs, *args, **kwargs):
+ def __init__(self, xs, ys, zs, zdir='z', *args, **kwargs):
'''
+ *zdir* sets with axes to treat as 'z'
+
Keyword arguments are passed onto :func:`~matplotlib.lines.Line2D`.
'''
lines.Line2D.__init__(self, [], [], *args, **kwargs)
- self.set_3d_data(xs,ys,zs)
+ self.set_3d_data(xs, ys, zs, zdir)
def set_3d_properties(self, zs=0, zdir='z'):
# this is broken, because if the line has

0 comments on commit 2bd8fae

Please sign in to comment.