Skip to content

[SPRINT] Closes #1079. Allow iterables for Line3DCollection #2172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/mpl_toolkits/mplot3d/art3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ def set_3d_properties(self, zs=0, zdir='z'):
ys = self.get_ydata()

try:
# If *zs* is a list or array, then this will fail and
# just proceed to juggle_axes().
zs = float(zs)
zs = [zs for x in xs]
except:
except TypeError:
pass
self._verts3d = juggle_axes(xs, ys, zs, zdir)

Expand Down Expand Up @@ -170,7 +172,7 @@ def set_segments(self, segments):
'''
Set 3D segments
'''
self._segments3d = segments
self._segments3d = np.asanyarray(segments)
LineCollection.set_segments(self, [])

def do_3d_projection(self, renderer):
Expand Down