# Multiple colorbar custom positions not honored

**URL:** https://discourse.paraview.org/t/multiple-colorbar-custom-positions-not-honored/5947
**Category:** Development
**Tags:** python
**Created:** [December 1, 2020, 4:01pm UTC](https://discourse.paraview.org/t/multiple-colorbar-custom-positions-not-honored/5947 "2020-12-01T16:01:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kschau](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/a5b964/32.png) [@kschau](https://discourse.paraview.org/u/kschau)
#### Post date: [December 1, 2020, 4:01pm UTC](https://discourse.paraview.org/t/multiple-colorbar-custom-positions-not-honored/5947/1 "2020-12-01T16:01:40Z")

</div>

I have an issue on both a custom build and prebuilt binary with paraview 5.8.1 in which a python state is saved with a renderview that has two colorbars that have defined positions.

At the end of the python script the two color bars are set to ‘on’ in the renderview

```auto
# show color legend
clip4Display.SetScalarBarVisibility(renderView1, True)

# show color legend
clip6Display.SetScalarBarVisibility(renderView1, True)

```

However, when this script is run in pvbatch, it turns out that only the second of these calls are enforced. The first colorbar is set to the default ‘top right’ position.

I have played around with Render(renderView1) in various locations but cannot manage to get both colorbars to their appropriate locations.

 ![PP-PHI-P2-000000](https://discourse.paraview.org/uploads/default/original/2X/2/24839562336364fd6ef17b8c746c0bca45ee1a57.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: [July 6, 2021, 4:34pm UTC](https://discourse.paraview.org/t/multiple-colorbar-custom-positions-not-honored/5947/2 "2021-07-06T16:34:15Z")

</div>

It’s possible that this bug is reported here: [https://gitlab.kitware.com/paraview/paraview/-/issues/20829](https://gitlab.kitware.com/paraview/paraview/-/issues/20829).

---

<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: [July 6, 2021, 4:34pm UTC](https://discourse.paraview.org/t/multiple-colorbar-custom-positions-not-honored/5947/3 "2021-07-06T16:34:29Z")

</div>

Oh, and thanks for reporting it!
