Welcome to brainplotlib#

brainplotlib is a Python package that can plot data on cortical surface. It is designed to have minimal requirements. It only depends on NumPy and matplotlib.

Installation#

brainplotlib can be easily installed with pip

python -m pip install brainplotlib 

Examples#

The examples gallery contains example scripts demonstrating common ways to use the package. Click an image to see the corresponding example script and explanations.

Save the high-res image

_images/save_image_5_0.png

Plot a colorbar

_images/plot_colorbar_5_0.png

Different colormaps

_images/different_cmaps_4_0.png

Different data resolutions

_images/different_resolutions_3_0.png

Handle cortical masks

_images/cortical_masks_3_0.png

Alternative surface types

_images/different_surfaces_3_0.png

Citation#

Please cite the package if you use it in your publications DOI

@software{brainplotlib,  author = {Ma Feilong and Guo Jiahui and M. Ida Gobbini and James V. Haxby},  title = {{brainplotlib: plotting brain data on cortical surface}},  month = feb,  year = 2022,  publisher = {Zenodo},  doi = {10.5281/zenodo.5979819},  url = {https://doi.org/10.5281/zenodo.5979819} }