[vtkusers] Trying to use vtkChartXY with Tcl

Mario Rodriguez biomates at telefonica.net
Tue Dec 15 15:27:23 EST 2015


Dear list members,

I am interested to learn how to use the vtkChartXY class from Tcl scripts.

Since I couldn't find any Tcl examples, I am trying to translate 
existing python examples into Tcl.

My first efforts started with

http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Charts/Core/Testing/Python/TestLinePlot.py

But I am having problems translating the following lines into Tcl:

line = chart.AddPlot(0)
line.SetInputData(table,0,2)

where chart was created with

vtkChartXY chart

Perhaps someone could help me to write the correct translation of this 
piece of code. I usually write programs in Lisp, and my knowledge of 
Python and Tcl is very limited.

I am working with version 6.3.

Thanks.

--
Mario


More information about the vtkusers mailing list