Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

quick API Documentation

quickbrain – fast brain surface plotting.

quickbrain.plotting

quickbrain.plotting – Python package for one-call brain surface visualisation.

plot_brain

plot_brain(stat_map=None, *, bg_map: 'Union[str, float, np.ndarray, None]' = 'curvature', threshold: 'float | None' = None, hemi: 'str' = 'left', view: 'str' = 'lateral', surf_type: 'str' = 'pial', res: 'Union[int, str]' = 'low', vol_to_surf_radius: 'float' = 3.0, overlay: 'str | Path | None' = 'default', overlay_linewidth: 'float' = 1.0, background: 'str' = 'white', post_blur: 'float' = 3.0, axes: 'Axes | None' = None, figure: 'Figure | None' = None, title: 'str | None' = None, colorbar: 'bool' = True, output_file: 'str | Path | None' = None, **kwargs) -> 'Figure'

Plot a statistical map on the MNI152 brain surface.

Parameters

Advanced options:

Returns

Example

from quickbrain import load_example_image, plot_brain
image = load_example_image("pain_response")
plot_brain(image, hemi="left", view="lateral", threshold=0.01)

load_example_image

load_example_image(name: 'ExampleImage' = 'pain_response')

Load a bundled example NIfTI image.

Parameters

Returns

Example

from quickbrain import load_example_image, plot_brain
image = load_example_image("pain_response")
plot_brain(image, hemi="left", view="lateral", threshold=0.01)