# Standardizing plots in paraview

**URL:** https://discourse.paraview.org/t/standardizing-plots-in-paraview/10335
**Category:** ParaView Support
**Created:** [September 16, 2022, 5:28am UTC](https://discourse.paraview.org/t/standardizing-plots-in-paraview/10335 "2022-09-16T05:28:35Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![dashp7](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/fbc32d/32.png) [@dashp7](https://discourse.paraview.org/u/dashp7)
#### Post date: [September 16, 2022, 5:28am UTC](https://discourse.paraview.org/t/standardizing-plots-in-paraview/10335/1 "2022-09-16T05:28:35Z")

</div>

Hi,  
**Query 1** → I have a dataset obtained from a fluid simulation with velocities, temperature, pressure and mass fractions. I want to generate plots where each of the following attributes varies with the variable being plotted:

1. Color scheme
2. Location of colorbar
3. Limits of color scheme
4. Ticks displayed in color scheme

While I am able to fix the first two, I have to change the limits and ticks manually for each variable, making the whole process tedious. Is there any way by which I can specify the limits and ticks being displayed (maybe like something on the lines of a dictionary in python, with key-value pairs)?

**Query 2** → While I am able to fix the location of the colorbar, it doesn’t get anchored to that point and gets displaced with accidental clicks. Can this issue be solved? The same issue also persists for the plot itself. Is there any way to anchor it w.r.t global coordinates in terms of lengths or pixels(preferred)

**Query 3** → Is there any way to fix the resolution in the render view? While I’m able to do so for the preview, whenever I “Export the scene” in .svg or .eps format, the number of pixels changes.

Thanks in advance!

---

<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: [September 16, 2022, 5:56am UTC](https://discourse.paraview.org/t/standardizing-plots-in-paraview/10335/2 "2022-09-16T05:56:30Z")

</div>

> [@dashp7](#):
>
> Is there any way by which I can specify the limits and ticks being displayed (maybe like something on the lines of a dictionary in python, with key-value pairs)?

Indeed, looks like python is the solution here

> **Query 2**

In a chart, the color bar is not movable so i will assume this is about the 3D view.  
Looking at it it looks like this is missing but should be an easy fix to add, please open an issue: [https://gitlab.kitware.com/paraview/paraview/-/issues](https://gitlab.kitware.com/paraview/paraview/-/issues)

> **Query 3**

Tools → LockViewSizeCustom

---

<div class="post-metadata">

### Author: ![dashp7](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/fbc32d/32.png) [@dashp7](https://discourse.paraview.org/u/dashp7)
#### Post date: [September 16, 2022, 6:39am UTC](https://discourse.paraview.org/t/standardizing-plots-in-paraview/10335/3 "2022-09-16T06:39:45Z")

</div>

Thanks for the quick response!  
Query1 → Can you direct me towards the the commands I should look for to achieve this?

Query2 → Sorry, I was asking about the 3D rendering only. I am able to **fix** the colorbar, but I want to do the same for the rendering (define coordinates for its origin as x,y,z). Is there any way to do so? Also, can I disable zooming in and out in Paraview?

Query3 → I tried locking the resolution at 2560x1440, but the issue still persists!

---

<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: [September 16, 2022, 7:32am UTC](https://discourse.paraview.org/t/standardizing-plots-in-paraview/10335/4 "2022-09-16T07:32:54Z")

</div>

Query1 → You can use Tools → Start Trace to generate python code in ParaView GUI

Query2 → No idea what you mean

Query3 →Which issue exactly ?

---

<div class="post-metadata">

### Author: ![dashp7](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/fbc32d/32.png) [@dashp7](https://discourse.paraview.org/u/dashp7)
#### Post date: [September 16, 2022, 7:55am UTC](https://discourse.paraview.org/t/standardizing-plots-in-paraview/10335/5 "2022-09-16T07:55:40Z")

</div>

Query 3 → After following the procedure you had mentioned for locking the resolution(2560x1440), whenever I “Export the scene” in .svg or .eps format, the number of pixels changes(to 3200x1800).  
I don’t encounter this issue while saving screenshots, but it would save the file in .jpeg/.png format, while the format .eps/.svg is mandatory in my case.

---

<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: [September 16, 2022, 8:00am UTC](https://discourse.paraview.org/t/standardizing-plots-in-paraview/10335/6 "2022-09-16T08:00:22Z")

</div>

Sounds like an issue in the SceneExporter.

---

<div class="post-metadata">

### Author: ![dashp7](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/fbc32d/32.png) [@dashp7](https://discourse.paraview.org/u/dashp7)
#### Post date: [September 19, 2022, 6:50am UTC](https://discourse.paraview.org/t/standardizing-plots-in-paraview/10335/7 "2022-09-19T06:50:13Z")

</div>

Regarding Query2 → As of now, I am able to drag the color bar and the 3d view using the mouse. Also, I am able to zoom in or zoom out the rendering using middle mouse(roller). I want to DISABLE this and fix the location of the colorbar and rendering using coordinates. Is it possible?

---

<div class="post-metadata">

### Author: ![Venke](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/6de8d8/32.png) [@Venke](https://discourse.paraview.org/u/Venke)
#### Post date: [September 19, 2022, 8:17am UTC](https://discourse.paraview.org/t/standardizing-plots-in-paraview/10335/8 "2022-09-19T08:17:09Z")

</div>

Not sure if it helps, but did you try setting a custom viewpoint (camera symbol in the tool bar)? You can then click on the generated viewpoint to return to the same rotation and zoom setting just before saving the figure.  
Cheers, Venke

---

<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: [September 19, 2022, 2:56pm UTC](https://discourse.paraview.org/t/standardizing-plots-in-paraview/10335/9 "2022-09-19T14:56:17Z")

</div>

You can disable mouse interactions in the 3D view:

- Edit / settings
- Camera tab
- edit `Camera 3D Manipulators` and set to `None` the click you want to disable, and `Mouse wheel factor` to 0 to disable wheel event.
