Different node styles¶
Open interactive notebook in Binder
There are currently three different node style options to choose from: circles, spheres, parcels. You just need to change the specification in the node_type argument.
In [1]:
Copied!
# Import packages
import netplotbrain
import matplotlib.pyplot as plt
# Import packages
import netplotbrain
import matplotlib.pyplot as plt
In [2]:
Copied!
fig = plt.figure()
fig = plt.figure()
<Figure size 432x288 with 0 Axes>
In [3]:
Copied!
# Circles
ax = fig.add_subplot(131, projection='3d')
netplotbrain.plot(nodes={'atlas': 'Schaefer2018',
'desc': '100Parcels7Networks',
'resolution': 1},
template='MNI152NLin6Asym',
template_style='glass',
template_glass_maxalpha=0.03,
view='S',
node_type='circles',
node_scale=40,
node_alpha=1,
arrowaxis=None,
subtitles='Circles',
fig=fig, ax=ax)
# Circles
ax = fig.add_subplot(131, projection='3d')
netplotbrain.plot(nodes={'atlas': 'Schaefer2018',
'desc': '100Parcels7Networks',
'resolution': 1},
template='MNI152NLin6Asym',
template_style='glass',
template_glass_maxalpha=0.03,
view='S',
node_type='circles',
node_scale=40,
node_alpha=1,
arrowaxis=None,
subtitles='Circles',
fig=fig, ax=ax)
Out[3]:
(<Figure size 432x288 with 1 Axes>, [<Axes3D: title={'center': 'Circles'}>])
In [4]:
Copied!
# Spheres
ax = fig.add_subplot(132, projection='3d')
netplotbrain.plot(nodes={'atlas': 'Schaefer2018',
'desc': '100Parcels7Networks',
'resolution': 1},
template='MNI152NLin6Asym',
template_style='glass',
template_glass_maxalpha=0.03,
view='S',
node_type='spheres',
node_alpha=1,
arrowaxis=None,
subtitles='Spheres',
fig=fig, ax=ax)
# Spheres
ax = fig.add_subplot(132, projection='3d')
netplotbrain.plot(nodes={'atlas': 'Schaefer2018',
'desc': '100Parcels7Networks',
'resolution': 1},
template='MNI152NLin6Asym',
template_style='glass',
template_glass_maxalpha=0.03,
view='S',
node_type='spheres',
node_alpha=1,
arrowaxis=None,
subtitles='Spheres',
fig=fig, ax=ax)
Out[4]:
(<Figure size 432x288 with 2 Axes>, [<Axes3D: title={'center': 'Spheres'}>])
In [5]:
Copied!
# Parcels
ax = fig.add_subplot(133, projection='3d')
netplotbrain.plot(nodes={'atlas': 'Schaefer2018',
'desc': '100Parcels7Networks',
'resolution': 1},
template='MNI152NLin6Asym',
template_style=None,
view='S',
node_type='parcels',
node_alpha=1,
node_color='tab20c',
arrowaxis=None,
subtitles='Parcels',
fig=fig, ax=ax)
# Parcels
ax = fig.add_subplot(133, projection='3d')
netplotbrain.plot(nodes={'atlas': 'Schaefer2018',
'desc': '100Parcels7Networks',
'resolution': 1},
template='MNI152NLin6Asym',
template_style=None,
view='S',
node_type='parcels',
node_alpha=1,
node_color='tab20c',
arrowaxis=None,
subtitles='Parcels',
fig=fig, ax=ax)
Out[5]:
(<Figure size 432x288 with 3 Axes>, [<Axes3D: title={'center': 'Parcels'}>])