@@ -572,9 +572,18 @@ def __getitem__(self, idx):
572
572
"array data with `img.dataobj[slice]` or "
573
573
"`img.get_data()[slice]`" )
574
574
575
- def orthoview (self , ** kwargs ):
575
+ def orthoview (self , axes = None , vlim = None ):
576
576
"""Plot the image using OrthoSlicer3D
577
577
578
+ Parameters
579
+ ------------------
580
+ axes : tuple of mpl.Axes or None, optional
581
+ 3 or 4 axes instances for the 3 slices plus volumes,
582
+ or None (default).
583
+ vlim : array-like or None, optional
584
+ Value limits to display image and time series. Can be None
585
+ (default) to derive limits from data.
586
+
578
587
Returns
579
588
-------
580
589
viewer : instance of OrthoSlicer3D
@@ -586,8 +595,8 @@ def orthoview(self, **kwargs):
586
595
consider using viewer.show() (equivalently plt.show()) to show
587
596
the figure.
588
597
"""
589
- return OrthoSlicer3D (self .dataobj , self .affine ,
590
- title = self .get_filename (), ** kwargs )
598
+ return OrthoSlicer3D (self .dataobj , self .affine , axes = axes ,
599
+ title = self .get_filename (), vlim = vlim )
591
600
592
601
def as_reoriented (self , ornt ):
593
602
"""Apply an orientation change and return a new image
0 commit comments