From 4a8ada5e91343305d8bc75ca5910ce6212069967 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sat, 11 Apr 2015 14:55:46 -0500 Subject: [PATCH] Further fixes to curve-pot example --- examples/curve-pot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/curve-pot.py b/examples/curve-pot.py index dbd8f611..0ffb1173 100644 --- a/examples/curve-pot.py +++ b/examples/curve-pot.py @@ -232,13 +232,13 @@ def draw_pot_figure(aspect_ratio, plotval_vol[outlier_flag] = sum( nb[outlier_flag] for nb in neighbors)/len(neighbors) - fp.show_scalar_in_mayavi(scale*plotval_vol, maxval=1) + fp.show_scalar_in_mayavi(scale*plotval_vol, max_val=1) from mayavi import mlab mlab.colorbar() if 1: mlab.points3d( - native_curve.pos[:, 0], - native_curve.pos[:, 1], + native_curve.pos[0], + native_curve.pos[1], scale*plotval_c, scale_factor=0.02) mlab.show() -- GitLab