Skip to content

Commit 7007eb1

Browse files
committed
BF: annotate and draw_cross only if anat is known in plot_anat
1 parent c25be46 commit 7007eb1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nipy/labs/viz_tools/activation_maps.py

100644100755
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,10 @@ def plot_anat(anat=None, anat_affine=None, cut_coords=None, figure=None,
319319
ortho_slicer.plot_map(anat, anat_affine, cmap=pl.cm.gray,
320320
vmin=vmin, vmax=vmax)
321321

322-
if annotate:
323-
ortho_slicer.annotate()
324-
if draw_cross:
325-
ortho_slicer.draw_cross()
322+
if annotate:
323+
ortho_slicer.annotate()
324+
if draw_cross:
325+
ortho_slicer.draw_cross()
326326

327327
if title is not None and not title == '':
328328
ortho_slicer.title(title)

0 commit comments

Comments
 (0)