# Screenshot from pvpython is... weird

**URL:** https://discourse.paraview.org/t/screenshot-from-pvpython-is-weird/1066
**Category:** ParaView Support
**Created:** [December 19, 2018, 6:27pm UTC](https://discourse.paraview.org/t/screenshot-from-pvpython-is-weird/1066 "2018-12-19T18:27:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![benoitpaillard](https://discourse.paraview.org/user_avatar/discourse.paraview.org/benoitpaillard/32/958_2.png) [@benoitpaillard](https://discourse.paraview.org/u/benoitpaillard)
#### Post date: [December 19, 2018, 6:27pm UTC](https://discourse.paraview.org/t/screenshot-from-pvpython-is-weird/1066/1 "2018-12-19T18:27:03Z")

</div>

Hi all,

I’m usually using pvpython at some point in a study, when I need to capture many identical screenshots from many parametrized cases.

I recently started getting this kind of issues :

 ![1_UField](https://discourse.paraview.org/uploads/default/original/1X/bbbca6f7b2dc40f056820e5629d0cd76671ca4c3.png)

You can notice there are two problems:

- The colobar is maximized, in the middle of the screenshot
- There are these weird artifacts…

These issues are not happening when I’m doing it by hand, which is actually the way I generate the script, before modifying it to loop all the case folders.

I’m using paraview 5.4.0 packaged with OpenFOAM

Thank you for your help !

---

<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: [December 19, 2018, 10:09pm UTC](https://discourse.paraview.org/t/screenshot-from-pvpython-is-weird/1066/2 "2018-12-19T22:09:48Z")

</div>

In your script, there is a line that says: “ViewSize”. Uncomment this.

You may also want to update to ParaView 5.6.0. 5.4.0 is old (and I believe had an issue with creating .avi files).

---

<div class="post-metadata">

### Author: ![benoitpaillard](https://discourse.paraview.org/user_avatar/discourse.paraview.org/benoitpaillard/32/958_2.png) [@benoitpaillard](https://discourse.paraview.org/u/benoitpaillard)
#### Post date: [December 19, 2018, 11:12pm UTC](https://discourse.paraview.org/t/screenshot-from-pvpython-is-weird/1066/3 "2018-12-19T23:12:19Z")

</div>

Hi Walter,

You nailed it right in the center. It’s all good now. Thanks !!

I know it’s bad to stick with this old version, but it is just so convenient in my workflow to just have it packaged with OpenFOAM, installed and operational with a single command line… But I’ll do the effort.

---

<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: [December 20, 2018, 1:48am UTC](https://discourse.paraview.org/t/screenshot-from-pvpython-is-weird/1066/4 "2018-12-20T01:48:50Z")

</div>

Among other wonderful features and improvements in 5.6.0 from our favorite neighborhood Kitware men and women, is the following that now appears at the top of all scripts:

# trace generated using paraview version 5.6.0  
#  
# To ensure correct image size when batch processing, please search  
# for and uncomment the line `# renderView*.ViewSize = [*,*]`

No problem at all. Stay calm and viz on! 🙂
