<div dir="ltr">Hi Mario,<div><br></div><div>Tcl syntax a mixture of lisp and shell script.  The code will look like this:</div><div><br></div><div>  set line [chart AddPlot 0]<br></div><div><span style="font-size:12.8px">  $line SetInputData table 0 2</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Are you really sure that you want to use Tcl?  Many of the VTK classes</span></div><div><span style="font-size:12.8px">and methods that you can use with Python cannot be used from Tcl, so</span></div><div><span style="font-size:12.8px">it might not even be possible to convert that example into working Tcl</span></div><div><span style="font-size:12.8px">code.  You're welcome to try, though.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"> - David</span></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 15, 2015 at 1:27 PM, Mario Rodriguez <span dir="ltr"><<a href="mailto:biomates@telefonica.net" target="_blank">biomates@telefonica.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Dear list members,<br>
<br>
I am interested to learn how to use the vtkChartXY class from Tcl scripts.<br>
<br>
Since I couldn't find any Tcl examples, I am trying to translate existing python examples into Tcl.<br>
<br>
My first efforts started with<br>
<br>
<a href="http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Charts/Core/Testing/Python/TestLinePlot.py" rel="noreferrer" target="_blank">http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Charts/Core/Testing/Python/TestLinePlot.py</a><br>
<br>
But I am having problems translating the following lines into Tcl:<br>
<br>
line = chart.AddPlot(0)<br>
line.SetInputData(table,0,2)<br>
<br>
where chart was created with<br>
<br>
vtkChartXY chart<br>
<br>
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.<br>
<br>
I am working with version 6.3.<br>
<br>
Thanks.<br>
<br>
--<br>
Mario<br></blockquote></div></div></div>