# How to display the cropVolume fitted with the slice views?

**URL:** https://discourse.slicer.org/t/how-to-display-the-cropvolume-fitted-with-the-slice-views/17698
**Category:** Support
**Created:** [May 19, 2021, 9:44pm UTC](https://discourse.slicer.org/t/how-to-display-the-cropvolume-fitted-with-the-slice-views/17698 "2021-05-19T21:44:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jumbojing](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jumbojing/32/10811_2.png) [@jumbojing](https://discourse.slicer.org/u/jumbojing)
#### Post date: [May 19, 2021, 9:44pm UTC](https://discourse.slicer.org/t/how-to-display-the-cropvolume-fitted-with-the-slice-views/17698/1 "2021-05-19T21:44:01Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/7/e7f875a8afb19d6830e813a893f8db5f93f4120f.jpeg)

这个被截取后的volume,怎么能最大化在切片视图里显示呢?

> The volume extracted from CropVolume module, how to display it fitted with the slices( Maximize the volume to full _slices view_)? I want to python code.Like follow:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/b/ab2156c71dbbaf2b85676a5e077c25371f2ed010.jpeg)

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [May 20, 2021, 1:32am UTC](https://discourse.slicer.org/t/how-to-display-the-cropvolume-fitted-with-the-slice-views/17698/2 "2021-05-20T01:32:05Z")

</div>

In recent Slicer Preview Releases (that soon will become the current stable release), volumes are fit to views by default when you show them, but you can fit them manually anytime using [`setSliceViewerLayers`](https://slicer.readthedocs.io/en/latest/developer_guide/slicer.html#slicer.util.setSliceViewerLayers) function as shown [here](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#load-volume-from-vti-file).
