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