How, in python, to do "Adjust the Plot Viewer's field of view to match the extent of the Plot axes"?

Operating system: windows
Slicer version: 4.11.0
Expected behavior: reset the focal of the quantitative view through Python
Actual behavior: click button

Hi all,
I know the slice views, I may use: sliceWidget(“Red”).fitSliceToBackgrond() to do the reset focal view;
I know the 3d-view, I may use: threeDView.resetFocalPoint(),

what’s the similar control function inside the quantitative view (as shown in the following image) ?

Thanks a lot, Aiden

Plot view axes can be reset to include the entire plot using plotWidget.plotView().fitToContent() (see documentation).

Thanks a lot, Andras!

1 Like