Skip to content

Commit

Permalink
Delaunay example: fix visualize=False
Browse files Browse the repository at this point in the history
  • Loading branch information
GaelVaroquaux committed Sep 9, 2011
1 parent 50b66cb commit 75afce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mayavi/advanced_visualization/delaunay_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def compute_delaunay_edges(x, y, z, visualize=False):
vtk_source = mlab.points3d(x, y, z, opacity=0.3, mode='2dvertex')
vtk_source.actor.property.point_size = 3
else:
vtk_source = mlab.points3d(x, y, z, figure=False)
vtk_source = mlab.pipeline.scalar_scatter(x, y, z, figure=False)
delaunay = mlab.pipeline.delaunay3d(vtk_source)
delaunay.filter.offset = 999 # seems more reliable than the default
edges = mlab.pipeline.extract_edges(delaunay)
Expand Down

0 comments on commit 75afce1

Please sign in to comment.