Skip to content

Commit

Permalink
Added zdir kwarg to Line3D.__init__
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas A Caswell committed Dec 31, 2012
1 parent ecbc43e commit 2bd8fae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/mpl_toolkits/mplot3d/art3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2bd8fae

Please sign in to comment.