@@ -589,9 +589,18 @@ def __getitem__(self, idx):
589
589
"slicing image array data with `img.dataobj[slice]` or "
590
590
"`img.get_data()[slice]`" )
591
591
592
- def orthoview (self , ** kwargs ):
592
+ def orthoview (self , axes = None , vlim = None ):
593
593
"""Plot the image using OrthoSlicer3D
594
594
595
+ Parameters
596
+ ------------------
597
+ axes : tuple of mpl.Axes or None, optional
598
+ 3 or 4 axes instances for the 3 slices plus volumes,
599
+ or None (default).
600
+ vlim : array-like or None, optional
601
+ Value limits to display image and time series. Can be None
602
+ (default) to derive limits from data.
603
+
595
604
Returns
596
605
-------
597
606
viewer : instance of OrthoSlicer3D
@@ -603,8 +612,8 @@ def orthoview(self, **kwargs):
603
612
consider using viewer.show() (equivalently plt.show()) to show
604
613
the figure.
605
614
"""
606
- return OrthoSlicer3D (self .dataobj , self .affine ,
607
- title = self .get_filename (), ** kwargs )
615
+ return OrthoSlicer3D (self .dataobj , self .affine , axes = axes ,
616
+ title = self .get_filename (), vlim = vlim )
608
617
609
618
def as_reoriented (self , ornt ):
610
619
"""Apply an orientation change and return a new image
0 commit comments