Skip to content

Commit ab09d9c

Browse files
author
Martin Luessi
committed
change default to False
1 parent 686d984 commit ab09d9c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

surfer/viz.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ def add_data(self, array, min=None, max=None, thresh=None,
768768
colormap="RdBu_r", alpha=1,
769769
vertices=None, smoothing_steps=20, time=None,
770770
time_label="time index=%d", colorbar=True,
771-
hemi=None, remove_existing=True):
771+
hemi=None, remove_existing=False):
772772
"""Display data from a numpy array on the surface.
773773
774774
This provides a similar interface to add_overlay, but it displays
@@ -818,7 +818,8 @@ def add_data(self, array, min=None, max=None, thresh=None,
818818
shown. If two hemispheres are being shown, an error will
819819
be thrown.
820820
remove_existing : bool
821-
Remove surface added by previous "add_data" call.
821+
Remove surface added by previous "add_data" call. Useful for
822+
conserving memory when displaying different data in a loop.
822823
"""
823824
hemi = self._check_hemi(hemi)
824825

0 commit comments

Comments
 (0)