Inheritance diagram for nipy.neurospin.viz_tools.ortho_slicer:
The OrthoSlicer class.
The main purpose of this class is to have auto adjust of axes size to the data.
Bases: object
A class to create 3 linked axes for plotting orthogonal cuts of 3D maps.
Notes
The extent of the different axes are adjusted to fit the data best in the viewing area.
Attributes
| axes: dictionnary of axes | The 3 axes used to plot each view. |
| frame_axes: axes | The axes framing the whole set of views. |
Methods
| annotate | |
| draw_cross | |
| plot_map | |
| title |
Create 3 linked axes for plotting orthogonal cuts.
| Parameters: | cut_coords: 3 tuple of ints :
axes: matplotlib axes object, optional :
|
|---|
Add annotations to the plot.
| Parameters: | left_right: boolean, optional :
positions: boolean, optional :
size: integer, optional :
kwargs: :
|
|---|
Draw a crossbar on the plot to show where the cut is performed.
| Parameters: | cut_coords: 3-tuple of floats, optional :
kwargs: :
|
|---|
Plot a 3D map in all the views.
| Parameters: | map: 3D ndarray :
affine: 4x4 ndarray :
kwargs: :
|
|---|
Write a title to the view.
| Parameters: | text: string :
x: float, optional :
y: float, optional :
size: integer, optional :
color: matplotlib color specifier, optional :
bgcolor: matplotlib color specifier, optional :
alpha: float, optional :
kwargs: :
|
|---|