# How to, via python, to reset focus center of SlicerLayoutConventionalQuantitativeView

**URL:** <https://discourse.slicer.org/t/how-to-via-python-to-reset-focus-center-of-slicerlayoutconventionalquantitativeview/13102>\
**Category:** Support\
**Created:** [August 20, 2020, 10:01am UTC](https://discourse.slicer.org/t/how-to-via-python-to-reset-focus-center-of-slicerlayoutconventionalquantitativeview/13102 "2020-08-20T10:01:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aiden.zhu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aiden.zhu/32/67145_2.png) [@aiden.zhu](https://discourse.slicer.org/u/aiden.zhu)\
**Post date:** [August 20, 2020, 10:01am UTC](https://discourse.slicer.org/t/how-to-via-python-to-reset-focus-center-of-slicerlayoutconventionalquantitativeview/13102/1 "2020-08-20T10:01:42Z")

</div>

Operating system: windows  
Slicer version: 4.11.0  
Expected behavior: set up the focus/center of QuantitativeView  
Actual behavior:

Hi all,  
what’s the command/function to trigger doing the automatic centering of quantitativeview after setting-up as SlicerLayoutConventionalQuantitativeView = 24 ?

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/4/34e59bf5e7c2af8c440dcbd5f8074d1cd4ca1d0e.png)

Thanks a lot!  
Aiden

---

<div class="post-metadata">

**Author:** ![aiden.zhu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aiden.zhu/32/67145_2.png) [@aiden.zhu](https://discourse.slicer.org/u/aiden.zhu)\
**Post date:** [August 20, 2020, 10:13am UTC](https://discourse.slicer.org/t/how-to-via-python-to-reset-focus-center-of-slicerlayoutconventionalquantitativeview/13102/2 "2020-08-20T10:13:05Z")

</div>

Aha, found it right away.

test = slicer.app.layoutManager().plotWidget(0).plotController()  
test.fitPlotToAxes()
