Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Version 0.8

- The surface geometry that is displayed can now be changed after initializing
a ``Brain`` instance with e.g. ``brain.set_surf("smoothwm")``.
- Allowed PySurfer to use custom matplotlib colormap objects or the names of
custom colormaps that have been registered with matplotlib.
- Added four new colormaps from ``seaborn``: ``rocket``, ``mako``, ``icefire``,
and ``vlag``.

Version 0.7
-----------
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ clean: clean-build clean-pyc clean-so clean-ctags

flake:
@if command -v flake8 > /dev/null; then \
flake8 --count surfer examples; \
flake8 --exclude surfer/cm.py --count surfer examples; \
fi

in: inplace # just a shortcut
Expand Down
9 changes: 4 additions & 5 deletions examples/plot_parc_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@
brain = Brain(subject_id, hemi, surf, background="white")

"""
Read in the Buckner resting state network annotation. (This requires a
relatively recent version of Freesurfer, or it can be downloaded separately).
Read in the automatic parcellation of sulci and gyri.
"""
aparc_file = os.path.join(os.environ["SUBJECTS_DIR"],
subject_id, "label",
hemi + ".Yeo2011_17Networks_N1000.annot")
hemi + ".aparc.a2009s.annot")
labels, ctab, names = nib.freesurfer.read_annot(aparc_file)

"""
Expand All @@ -39,7 +38,7 @@

"""
rs = np.random.RandomState(4)
roi_data = rs.uniform(.5, .75, size=len(names))
roi_data = rs.uniform(.5, .8, size=len(names))

"""
Make a vector containing the data point at each vertex.
Expand All @@ -51,4 +50,4 @@
these data move from low to high values), and add an alpha channel so the
underlying anatomy is visible.
"""
brain.add_data(vtx_data, .5, .75, colormap="GnBu", alpha=.8)
brain.add_data(vtx_data, .5, .75, colormap="rocket", alpha=.8)
4 changes: 2 additions & 2 deletions examples/plot_resting_correlations.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
We'll also plot the map with some transparency so that we can see through to
the underlying anatomy.
"""
brain.add_data(surf_data_lh, -.7, .7, colormap="coolwarm", alpha=.75,
brain.add_data(surf_data_lh, -.7, .7, colormap="vlag", alpha=.75,
hemi='lh')
brain.add_data(surf_data_rh, -.7, .7, colormap="coolwarm", alpha=.75,
brain.add_data(surf_data_rh, -.7, .7, colormap="vlag", alpha=.75,
hemi='rh')

"""
Expand Down
Loading