[Paraview] adding axes via python scripting
Jean M. Favre
jfavre at cscs.ch
Thu Apr 9 04:09:38 EDT 2009
Michael Müller wrote:
> I just tried to add the CubeAxesRepresentation via python scripting using Paraview 3.4. Within the script I read some VTK-file, get its cell data, add a color legend and save the screenshot as png-file. It looks like the following:
>
>
try the following:
reader = sm.sources.LegacyVTKFileReader(FileNames=fname)
axes = sm.rendering.CubeAxesRepresentation(Input=reader)
Jean--
Swiss National Supercomputing Center
More information about the ParaView
mailing list