Skip to content

Commit 9cd7511

Browse files
christianbrodbecklarsoner
authored andcommitted
FIX: don't change view when adding foci (#274)
1 parent 80c3ccb commit 9cd7511

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

surfer/viz.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3365,7 +3365,8 @@ def add_foci(self, foci_coords, scale_factor, color, alpha, name):
33653365
points = mlab.points3d(
33663366
foci_coords[:, 0], foci_coords[:, 1], foci_coords[:, 2],
33673367
np.ones(foci_coords.shape[0]), name=name, figure=self._f,
3368-
scale_factor=(10. * scale_factor), color=color, opacity=alpha)
3368+
scale_factor=(10. * scale_factor), color=color, opacity=alpha,
3369+
reset_zoom=False)
33693370
return points
33703371

33713372
def add_contour_overlay(self, scalar_data, min=None, max=None,

0 commit comments

Comments
 (0)