Skip to main content

A package for publication-ready brain surface figures

Project description

https://zenodo.org/badge/380025008.svg

surfplot is a flexible and easy-to-use package that makes publication-ready brain surface plots. Users can easily set the plot views and layout, add multiple data layers, draw outlines, and further customize their figure directly using matplotlib.

example

Example Neurosynth association maps; see Example 1

At its core, surfplot is simply a high-level interface to Brainspace’s excellent surface plotting and manipulation capabilities, which are built on top of Visualization Toolkit (VTK). Surfaces are rendered with Brainspace and then embedded into a matplotlib figure for easy integration with typical plotting workflows. A big thank you to the Brainspace developers for making this package possible.

surfplot is designed around common use-cases for surface plotting and popular surface plotting software (e.g., Connectome Workbench). surfplot also provides some additional utility functions to streamline the plotting process.

Getting started

Follow the Installation Instructions to install surfplot, and then check out the Tutorials and Examples to learn how to get up and running! Refer to the API reference for complete documentation.

Citing surfplot

Please cite the following if you use surfplot:

Gale, Daniel J., Vos de Wael., Reinder, Benkarim, Oualid, & Bernhardt, Boris. (2021). Surfplot: Publication-ready brain surface figures (v0.1.0). Zenodo. https://doi.org/10.5281/zenodo.5567926

Vos de Wael R, Benkarim O, Paquola C, Lariviere S, Royer J, Tavakol S, Xu T, Hong S-J, Langs G, Valk S, Misic B, Milham M, Margulies D, Smallwood J, Bernhardt BC. 2020. BrainSpace: a toolbox for the analysis of macroscale gradients in neuroimaging and connectomics datasets. Communications Biology. 3:103. https://doi.org/10.1038/s42003-020-0794-7

License information

This codebase is licensed under the 3-clause BSD license. The full license can be found in the LICENSE file in the surfplot distribution.

Support

If you encounter problems or bugs with surfplot, or have questions or improvement suggestions, please feel free to get in touch via the Github issues.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

surfplot-0.3.0rc0.tar.gz (72.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

surfplot-0.3.0rc0-py3-none-any.whl (70.4 kB view details)

Uploaded Python 3

File details

Details for the file surfplot-0.3.0rc0.tar.gz.

File metadata

  • Download URL: surfplot-0.3.0rc0.tar.gz
  • Upload date:
  • Size: 72.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for surfplot-0.3.0rc0.tar.gz
Algorithm Hash digest
SHA256 13e798ec7a08f38f2b3ba8d93b26d52df0ab3b95804630eae128b96e23e604de
MD5 a042cc1ca1a3e029ae409ded4dd592cc
BLAKE2b-256 5652b539f0352fcb83f839852ec48030a084f6bb6efae493c8af093f3e758f90

See more details on using hashes here.

File details

Details for the file surfplot-0.3.0rc0-py3-none-any.whl.

File metadata

  • Download URL: surfplot-0.3.0rc0-py3-none-any.whl
  • Upload date:
  • Size: 70.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for surfplot-0.3.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 738502557bc0e7bd0eb7f81d25b9870965a1d958bbdb256ac3aefb9a57fa5b52
MD5 1ae7755664b8e5dfc9d2f81b444c3e5b
BLAKE2b-256 20e4c3f74f5197cae2f704923734cdd3b60cbcf46402bb1e5c76c63ea8ea6133

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page