# Add feature to evenly distribute views

**URL:** https://discourse.paraview.org/t/add-feature-to-evenly-distribute-views/7417
**Category:** Feature Requests
**Created:** [June 16, 2021, 7:16am UTC](https://discourse.paraview.org/t/add-feature-to-evenly-distribute-views/7417 "2021-06-16T07:16:46Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![GregVernon](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gregvernon/32/1494_2.png) [@GregVernon](https://discourse.paraview.org/u/GregVernon)
#### Post date: [June 16, 2021, 7:16am UTC](https://discourse.paraview.org/t/add-feature-to-evenly-distribute-views/7417/1 "2021-06-16T07:16:46Z")

</div>

**Problem:** If a user wants to create a layout of views that are divisible by two, it’s quite simple to get an even distribution of these views using the `split` icons:  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/2/26e784929d41f72287ac11d0bb24019ce2b09e73.png)  
However, if the user wants a layout of say, three images, it’s quite onerous to do so. Also, there have been a handful of times where I’ve accidentally moved the dividing line between a “power of two” layout and it’s painful to get back to an even distribution again.

For example, here’s me trying to use the GUI to make a 1x3 layout of results:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/1/1626672e4e3a12277303f9452ff9d8f329e15e7c.jpeg)  
I’m then left with either dragging the dividing lines back and forth to get _close_ to an even distribution, or I’ve got to load up a Python shell and run a trace command in order to script this.

**Proposed Feature:**  
Some functionality in ParaView that does one or more of the following:

- Lets the user specify the relative width & height for each view in a layout,
- Lets the user add a “dimension constraint” between two or more views to set one or more of their dimensions to be equal.
- Lets the user select multiple contiguous views and `distribute [horizontally | vertically]` similar to PowerPoint.
- Other?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 16, 2021, 7:41am UTC](https://discourse.paraview.org/t/add-feature-to-evenly-distribute-views/7417/2 "2021-06-16T07:41:09Z")

</div>

> [@GregVernon](#):
>
> Lets the user select multiple contiguous views and `distribute [horizontally | vertically]` similar to PowerPoint.

A simpler idea would be as follows:

Add two new buttons next to the split buttons: distribute horizontally, distribute vertically.

When clicked, all views will be distributed in the wanted direction. Eg:

 ![a](https://discourse.paraview.org/uploads/default/original/2X/6/66810c889c867e4904d9e584c8b35a62a4791198.png)

become:

 ![b](https://discourse.paraview.org/uploads/default/original/2X/e/e3833aba981eaa92cba670c4f72769398033c4ea.png)

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [June 16, 2021, 4:41pm UTC](https://discourse.paraview.org/t/add-feature-to-evenly-distribute-views/7417/3 "2021-06-16T16:41:24Z")

</div>

Mathieu, good idea. [https://gitlab.kitware.com/paraview/paraview/-/issues/20788](https://gitlab.kitware.com/paraview/paraview/-/issues/20788).

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [June 16, 2021, 4:42pm UTC](https://discourse.paraview.org/t/add-feature-to-evenly-distribute-views/7417/4 "2021-06-16T16:42:00Z")

</div>

And Greg, thanks for the “nudge”.

---

<div class="post-metadata">

### Author: ![Cavid\_Azimi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cavid_azimi/32/10325_2.png) [@Cavid\_Azimi](https://discourse.paraview.org/u/Cavid_Azimi)
#### Post date: [August 14, 2023, 5:37pm UTC](https://discourse.paraview.org/t/add-feature-to-evenly-distribute-views/7417/5 "2023-08-14T17:37:11Z")

</div>

Is this feature available to use? I need to evenly distribute the windows!

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [August 15, 2023, 1:17am UTC](https://discourse.paraview.org/t/add-feature-to-evenly-distribute-views/7417/6 "2023-08-15T01:17:01Z")

</div>

It was added in [https://gitlab.kitware.com/paraview/paraview/-/merge\_requests/4719](https://gitlab.kitware.com/paraview/paraview/-/merge_requests/4719) and will be available in ParaView 5.12.0. It is available right now in the nightly builds available at [www.paraview.org/download](http://www.paraview.org/download).

To use, Ctrl/right click on the Layout tab above the views and select the menu item named “Rearrange Views” and select an option.

---

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [August 15, 2023, 4:18pm UTC](https://discourse.paraview.org/t/add-feature-to-evenly-distribute-views/7417/7 "2023-08-15T16:18:19Z")

</div>

Very cool!

---

<div class="post-metadata">

### Author: ![joao.zerba](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@joao.zerba](https://discourse.paraview.org/u/joao.zerba)
#### Post date: [March 28, 2024, 1:52pm UTC](https://discourse.paraview.org/t/add-feature-to-evenly-distribute-views/7417/8 "2024-03-28T13:52:39Z")

</div>

Dear Cory, thanks for this feature. I wonder if there is a python command for this Equalize Views? It seems this command is not available to be traced in the ParaView GUI.  
Thanks in advance.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [March 28, 2024, 2:25pm UTC](https://discourse.paraview.org/t/add-feature-to-evenly-distribute-views/7417/9 "2024-03-28T14:25:11Z")

</div>

@nicolas.vuaille any plans to expose in Python?

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [March 28, 2024, 2:37pm UTC](https://discourse.paraview.org/t/add-feature-to-evenly-distribute-views/7417/10 "2024-03-28T14:37:52Z")

</div>

I have no plan to improve python support, but it is already available:

```auto
GetLayout().SMProxy.EqualizeViews()

```

Or for specfic direction:

```auto
GetLayout().SMProxy.EqualizeViews(paraview.modules.vtkRemotingViews.vtkSMViewLayoutProxy.HORIZONTAL)

```

I think it should be very easy to add that in `simple.py`

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [July 22, 2024, 9:32pm UTC](https://discourse.paraview.org/t/add-feature-to-evenly-distribute-views/7417/11 "2024-07-22T21:32:20Z")

</div>

`paraview.simple` functions added in [https://gitlab.kitware.com/paraview/paraview/-/merge\_requests/6962](https://gitlab.kitware.com/paraview/paraview/-/merge_requests/6962)
