# Side by side view: How to enable the green slice to compare with the red one?

**URL:** <https://discourse.slicer.org/t/side-by-side-view-how-to-enable-the-green-slice-to-compare-with-the-red-one/7646>\
**Category:** Support\
**Created:** [July 17, 2019, 10:55pm UTC](https://discourse.slicer.org/t/side-by-side-view-how-to-enable-the-green-slice-to-compare-with-the-red-one/7646 "2019-07-17T22:55:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![NoobForSlicer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/noobforslicer/32/10900_2.png) [@NoobForSlicer](https://discourse.slicer.org/u/NoobForSlicer)\
**Post date:** [July 17, 2019, 10:55pm UTC](https://discourse.slicer.org/t/side-by-side-view-how-to-enable-the-green-slice-to-compare-with-the-red-one/7646/1 "2019-07-17T22:55:33Z")

</div>

So far I can only see the red and yellow one side by side… ANy idea how to see the green and red side by side?

---

<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:** [July 17, 2019, 11:17pm UTC](https://discourse.slicer.org/t/side-by-side-view-how-to-enable-the-green-slice-to-compare-with-the-red-one/7646/2 "2019-07-17T23:17:17Z")

</div>

There are many layouts to choose from. Click the layout selector button on the toolbar and choose “Conventional” to get a view where all three views are shown side by side.

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

You can define any custom layout, with any number of views in any arrangement, as shown [here](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Customize_viewer_layout).

---

<div class="post-metadata">

**Author:** ![Prashant\_Pandey](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@Prashant\_Pandey](https://discourse.slicer.org/u/Prashant_Pandey)\
**Post date:** [September 13, 2019, 11:15pm UTC](https://discourse.slicer.org/t/side-by-side-view-how-to-enable-the-green-slice-to-compare-with-the-red-one/7646/3 "2019-09-13T23:15:29Z")

</div>

Just wondering if there’s an easier way to customize layout than the snippet you linked? It just seems an awkward way to change and customize layout, rather than having a GUI option. For example in the ‘side by side’ option in the layout selector, I think users should be able to directly select which views/slices they want to display side by side, and whether the split should be horizontal or vertical.

---

<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:** [September 14, 2019, 11:57am UTC](https://discourse.slicer.org/t/side-by-side-view-how-to-enable-the-green-slice-to-compare-with-the-red-one/7646/4 "2019-09-14T11:57:56Z")

</div>

> [@Prashant\_Pandey](#):
>
> It just seems an awkward way to change and customize layout, rather than having a GUI option.

It would be certainly useful to have GUI to dynamically create new layouts but implementation would be significant effort. There are several other areas where investing development time makes bigger impact.

Do you know you can register layouts automatically in your slicerrc.py file? You can probably even make it show up in the layout sensor. Would that help?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [September 14, 2019, 2:28pm UTC](https://discourse.slicer.org/t/side-by-side-view-how-to-enable-the-green-slice-to-compare-with-the-red-one/7646/5 "2019-09-14T14:28:42Z")

</div>

You can also try the CompareVolumes module (under Wizards in the menu).

Under the hood the CompareVolumesLogic has some helper code that may handle your use cases. It’s shipped with Slicer.

> <https://github.com/pieper/CompareVolumes/blob/master/CompareVolumes.py#L195-L444>

---

<div class="post-metadata">

**Author:** ![Prashant\_Pandey](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@Prashant\_Pandey](https://discourse.slicer.org/u/Prashant_Pandey)\
**Post date:** [September 14, 2019, 8:35pm UTC](https://discourse.slicer.org/t/side-by-side-view-how-to-enable-the-green-slice-to-compare-with-the-red-one/7646/6 "2019-09-14T20:35:52Z")

</div>

Thanks, Ill try CompareVolumes

@lassoan How do I register layouts and make them show up in the layout menu, that sounds useful

---

<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:** [September 14, 2019, 9:48pm UTC](https://discourse.slicer.org/t/side-by-side-view-how-to-enable-the-green-slice-to-compare-with-the-red-one/7646/7 "2019-09-14T21:48:36Z")

</div>

> [@Prashant\_Pandey](#):
>
> How do I register layouts and make them show up in the layout menu, that sounds useful

See this example in the script repository: [Documentation/Nightly/ScriptRepository - Slicer Wiki](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Customize_viewer_layout)
