Dear All,
For some reason, I am getting error messages running a python batch script
when I try to execute WriteImage on an XYPlotView. I have tried various
combinations but I get the same error message each time:
paraview version 3.7.0, Date: 2009-10-03
vtkTecplotReader : [ ...........]
vtkExtractBlock : [ ...........]
vtkCompositeDataToUnstructuredGridFilter : [ ...........]
vtkCutter : [ ...........]
Traceback (most recent call last):
File "plot_taubl_data.py", line 40, in ?
WriteImage("test.png",XYPlotView)
File
"/raid2/gagliard/Paraview/paraview-3.7.0-ARA-Linux-x86_64/lib/paraview-3.7/p
araview/simple.py", line 389, in WriteImage
view.WriteImage(filename, writer, mag)
File
"/raid2/gagliard/Paraview/paraview-3.7.0-ARA-Linux-x86_64/lib/paraview-3.7/p
araview/servermanager.py", line 319, in __ConvertArgumentsAndCall
retVal = func(*newArgs)
TypeError: function takes exactly 1 argument (3 given)
The combinations I have tried are:
WriteImage("test.png")
WriteImage("test.png",Magnificiation=2)
WriteImage("test.png",XYPlotView,Writer=vtkPNGWriter,Magnification=2)
and I get the same error each time. I get the same error when running the
script interactively, but I can then proceed to save a screenshot without a
problem. Am I missing something or is this a bug? I am using
ParaView-3.6.2-RC2.
Regards,
Adriano
===================================
Adriano Gagliardi MEng PhD
Business Sector Leader
Computational Aerodynamics
Aircraft Research Association Ltd.
Manton Lane
Bedford
Tel: 01234 32 4644
E-mail: [email protected]
Url: www.ara.co.uk
**********************************************************************
This email contains information that is private and confidential and is
intended only for the addressee.
If you are not the intended recipient please delete it and notify us
immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone other
than the recipient, for
system management and security reasons.
Aircraft Research Association Ltd. Registered in England, Registration No
503668 Registered Office:
Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
**********************************************************************
_______________________________________________
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