I am using the latest paraview binary (version 5.8.0 with MPI and python 3) under Linux.
I have a simple python script (recorded via set trace) which loads a XDMF file, plots the data, adds a colorbar (setting font size to 12) and then saves a screenshot. If I run that script in the GUI I get the desired result.
Hello Dan,
I am experiencing now some limitations regarding the image size. I now use the name of the resulting PNG and pixels as input arguments. E.g. with the view size you suggested:
@danlipsa That’s not true. You absolutely can go bigger than your screen size, I believe up to the size of your frame buffer. That’s the way you make good resoltuion images for powerwalls. If there IS an issue making big images, that is a bug and needs to get fixed.
I played around with the second question, having to do with larger resolutions. I am on a very small viewport, about 700x300 (i.e., macbook, working remotely). I created .png’s that were 2345X1234 successfully, both with ParaView, and pvbatch from a script. Note that due to the file format for .png’s, what actually comes out in both cases is 2345X1232. I also did find one case where there was a 2 pixel wide difference, but don’t see that as an issue.
Alan,
You are right, you can save an image larger than the screen size. I was referring to setting the view size when rendering on-screen that does limit you to the size of the screen - which seems to be happening for pvpython.
But I don’t know why there is a difference between pvbatch and pvpython.
Philip, do you see a window created on the screen for rendering? For both pvpython and pvbatch?
Philip,
You’ll need to set the view size the same as the image size only for pvbatch. For pvpython you don’t need to do that - this will take care of the window bigger than the screen size problem.
I am using Paraview 5.8.1 and I am facing the same issue.
I am setting the ImageResolution parameter the same as the ViewSize parameter but when I run the script through pvbatch the size of the legend becomes larger than it should be?