Skip to content

Commit ec7d602

Browse files
committed
Fix contour default cmap in examples
1 parent 325dd75 commit ec7d602

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/plot_freesurfer_normalization.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
curv_bin = (curv.get_data() > 0).squeeze()
2929

3030
# Add the data as a contour overlay, but turn off the colorbar
31-
brain.add_contour_overlay(curv_bin, 0, 1.15, 2, 3, hemi=hemi)
31+
brain.add_contour_overlay(curv_bin, min=0, max=1.5, n_contours=2,
32+
line_width=3, hemi=hemi)
3233
brain.contour_list[-1]["colorbar"].visible = False
3334

3435
brain.show_view("dorsal")

surfer/viz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ def add_foci(self, coords, coords_as_verts=False, map_surface=None,
12491249
self._toggle_render(True, views)
12501250

12511251
def add_contour_overlay(self, source, min=None, max=None,
1252-
n_contours=7, line_width=1.5, colormap="RdBu_r",
1252+
n_contours=7, line_width=1.5, colormap="YlOrRd_r",
12531253
hemi=None):
12541254
"""Add a topographic contour overlay of the positive data.
12551255

0 commit comments

Comments
 (0)