File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- This simple package contains a ` brain_plot ` function that plots data on cortical surface.
2- It assumes that:
3- - The data is in fsaverage space with icoorder3 resolution (642 vertices per hemisphere).
4- - The non-cortical vertices has been masked out (588 and 587 remaining vertices for the left and right hemisphere, respectively).
1+ This is a Python package that plots data on cortical surface.
2+
3+ ## Installation
4+ The package can be installed with pip:
5+ ``` bash
6+ pip install brainplotlib
7+ ```
8+
9+ ## Example usage
510
611``` Python
712import numpy as np
813from brainplotlib import brain_plot
914
10- # Generate some random data
15+ # # Generate some random data
16+ # In this case it's icoorder3 resolution (642 vertices per hemisphere), and
17+ # the non-cortical vertices have been masked out (588 and 587 remaining
18+ # vertices for the left and right hemisphere, respectively).
1119rng = np.random.default_rng(0 )
1220v = rng.random((1175 , ))
1321
Original file line number Diff line number Diff line change 11[metadata]
22name = brainplotlib
3- version = 0.1 .0
3+ version = 0.2 .0
44author = Ma Feilong
55author_email = mafeilong@gmail.com
66description = A lightweight package to plot brain surfaces with Python.
@@ -25,8 +25,12 @@ install_requires =
2525 matplotlib
2626
2727[options.package_data]
28- brainplotlib =
29- data/*.npy
28+ brainplotlib =
29+ data/*.npy
3030
3131[options.packages.find]
3232where = src
33+
34+ [options.extras_require]
35+ tests =
36+ pytest
You can’t perform that action at this time.
0 commit comments