Skip to content

Commit cad4820

Browse files
FIX time_label
1 parent be7fd8b commit cad4820

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
@@ -871,7 +871,8 @@ def add_data(self, array, min=None, max=None, thresh=None,
871871
raise ValueError('time is not the same length as '
872872
'array.shape[1]')
873873
if isinstance(time_label, basestring):
874-
time_label = lambda x: time_label % x
874+
time_label_fmt = time_label
875+
time_label = lambda x: time_label_fmt % x
875876
data["time_label"] = time_label
876877
data["time"] = time
877878
data["time_idx"] = 0

0 commit comments

Comments
 (0)