Permalink
Browse files

added default values to Line3D.set_3d_data so that a sub-set of

x,y,z can be specified.
  • Loading branch information...
1 parent 2bd8fae commit f82812dbd3f417b86c583679797f85a100af9a72 Thomas A Caswell committed Dec 31, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/mpl_toolkits/mplot3d/art3d.py
View
9 lib/mpl_toolkits/mplot3d/art3d.py
@@ -117,7 +117,14 @@ def set_3d_properties(self, zs=0, zdir='z'):
pass
self._verts3d = juggle_axes(xs, ys, zs, zdir)
- def set_3d_data(self, xs, ys, zs, zdir='z'):
+ def set_3d_data(self, xs=None, ys=None, zs=None, zdir='z'):
+ x_old,y_old,z_old = self._verts3d
+ if xs is None:
+ xs = x_old
+ if ys is None:
+ ys = y_old
+ if zs is None:
+ zs = z_old
try:
zs = float(zs)
zs = [zs for x in xs]

0 comments on commit f82812d

Please sign in to comment.