Preset viewing angles¶
This notebook shows the preset combinations that exist in netplotbrain that can be specified by setting the keyword argument view to the following
In [1]:
Copied!
# import necessary packages and load example data
import pandas as pd
import netplotbrain
nodes = pd.read_csv('./examples/example_nodes.tsv', sep='\t', index_col=0)
edges = pd.read_csv('./examples/example_edges.tsv', sep='\t', index_col=0)
# import necessary packages and load example data
import pandas as pd
import netplotbrain
nodes = pd.read_csv('./examples/example_nodes.tsv', sep='\t', index_col=0)
edges = pd.read_csv('./examples/example_edges.tsv', sep='\t', index_col=0)
view='preset-3'¶
In [2]:
Copied!
netplotbrain.plot(template='MNI152NLin2009cAsym',
template_style='glass',
view='preset-3',
nodes=nodes,
edges=edges)
netplotbrain.plot(template='MNI152NLin2009cAsym',
template_style='glass',
view='preset-3',
nodes=nodes,
edges=edges)
Out[2]:
(<Figure size 648x216 with 3 Axes>,
[<Axes3D: title={'center': 'Left'}>,
<Axes3D: title={'center': 'Right'}>,
<Axes3D: title={'center': 'Superior'}>])
view='preset-4'¶
In [3]:
Copied!
netplotbrain.plot(template='MNI152NLin2009cAsym',
template_style='glass',
view='preset-4',
nodes=nodes,
edges=edges)
netplotbrain.plot(template='MNI152NLin2009cAsym',
template_style='glass',
view='preset-4',
nodes=nodes,
edges=edges)
Out[3]:
(<Figure size 432x432 with 4 Axes>,
[<Axes3D: title={'center': 'Left (left hemisphere)'}>,
<Axes3D: title={'center': 'Right (right hemisphere)'}>,
<Axes3D: title={'center': 'Right (left hemisphere)'}>,
<Axes3D: title={'center': 'Left (right hemisphere)'}>])
view='preset-4spring' (alt: preset-4s)¶
In [4]:
Copied!
netplotbrain.plot(template='MNI152NLin2009cAsym',
template_style='glass',
view='preset-4spring',
nodes=nodes,
edges=edges)
netplotbrain.plot(template='MNI152NLin2009cAsym',
template_style='glass',
view='preset-4spring',
nodes=nodes,
edges=edges)
Out[4]:
(<Figure size 432x432 with 4 Axes>,
[<Axes3D: title={'center': 'Superior'}>,
<Axes3D: >,
<Axes3D: title={'center': 'Left'}>,
<Axes3D: title={'center': 'Right'}>])
view='preset-9'¶
In [5]:
Copied!
netplotbrain.plot(template='MNI152NLin2009cAsym',
template_style='glass',
view='preset-9',
nodes=nodes,
edges=edges)
netplotbrain.plot(template='MNI152NLin2009cAsym',
template_style='glass',
view='preset-9',
nodes=nodes,
edges=edges)
Out[5]:
(<Figure size 648x648 with 9 Axes>,
[<Axes3D: title={'center': 'Left (left hemisphere)'}>,
<Axes3D: title={'center': 'Superior'}>,
<Axes3D: title={'center': 'Right (right hemisphere)'}>,
<Axes3D: title={'center': 'Right (left hemisphere)'}>,
<Axes3D: title={'center': 'Inferior'}>,
<Axes3D: title={'center': 'Left (right hemisphere)'}>,
<Axes3D: title={'center': 'Anterior'}>,
<Axes3D: >,
<Axes3D: title={'center': 'Posterior'}>])
view='preset-6'¶
In [6]:
Copied!
netplotbrain.plot(template='MNI152NLin2009cAsym',
template_style='glass',
view='preset-6',
nodes=nodes,
edges=edges)
netplotbrain.plot(template='MNI152NLin2009cAsym',
template_style='glass',
view='preset-6',
nodes=nodes,
edges=edges)
Out[6]:
(<Figure size 648x432 with 6 Axes>,
[<Axes3D: title={'center': 'Left (left hemisphere)'}>,
<Axes3D: title={'center': 'Superior'}>,
<Axes3D: title={'center': 'Right (right hemisphere)'}>,
<Axes3D: title={'center': 'Right (left hemisphere)'}>,
<Axes3D: title={'center': 'Anterior'}>,
<Axes3D: title={'center': 'Left (right hemisphere)'}>])
view='preset-6spring' (alt: preset-6s)¶
In [7]:
Copied!
netplotbrain.plot(template='MNI152NLin2009cAsym',
template_style='glass',
view='preset-6spring',
nodes=nodes,
edges=edges)
netplotbrain.plot(template='MNI152NLin2009cAsym',
template_style='glass',
view='preset-6spring',
nodes=nodes,
edges=edges)
Out[7]:
(<Figure size 648x432 with 6 Axes>,
[<Axes3D: title={'center': 'Left (left hemisphere)'}>,
<Axes3D: title={'center': 'Superior'}>,
<Axes3D: title={'center': 'Right (right hemisphere)'}>,
<Axes3D: title={'center': 'Right (left hemisphere)'}>,
<Axes3D: >,
<Axes3D: title={'center': 'Left (right hemisphere)'}>])