Hello
I am seeing a couple of difficulties in using the XYPlotView in python and
pvbatch, using ParaView head (3.9)
How does one specify the size of the image saved?
By default, I get a 300x300 pixels image and that is not good enough, since the
legend takes over much of the space.
I did not find the equivalent of "ViewSize", e.g.
GetRenderView().ViewSize = [1024, 1024]
Another issue is that ALL my data variables are plotted, regardless of my
explicit setting of
DataRepresentation3.SeriesVisibility = [ stuff deleted ]
A third issue is that I could not make the macro AnimateReader() work. It gave
me the following error:
File
"/apps/eiger/src/ParaViewBuildMesa/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py",
line 2278, in AnimateReader
raise RuntimeError, "Saving of animation failed!"
I got around this by writing my own animation loop:
for idx, t in enumerate(reader.TimestepValues):
XYChartView1.ViewTime = t
XYChartView1.StillRender()
XYChartView1.WriteImage("/scratch/eiger/jfavre/chart1." + str(idx) + ".png",
"vtkPNGWriter", 1)
and that worked fine, although at resolution 300x300. So, perhaps the
vtkSMAnimationSceneImageWriter needs to be checked...?
any hints will be appreciated.
-----------------
Jean M. Favre
Swiss National Supercomputing Center
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview