<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">El 15/12/15 a las 21:51, David Gobbi
escribió:<br>
</div>
<blockquote
cite="mid:CANwS1=Ggh0opQaPYBL9NGiD3YT1WekfGLwDEcMis=fMW0mCQmg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Mario,
<div><br>
</div>
</div>
</blockquote>
<br>
Thanks for your kind and quick response.<br>
<br>
<blockquote
cite="mid:CANwS1=Ggh0opQaPYBL9NGiD3YT1WekfGLwDEcMis=fMW0mCQmg@mail.gmail.com"
type="cite">
<div dir="ltr">
<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>
</blockquote>
<br>
Now I see where I was wrong. I forgot the dollar symbol.<br>
<br>
After writing:<br>
<br>
[view GetRenderWindow] SetMultiSamples 0<br>
[view GetRenderWindow] Render<br>
<br>
where view was created by<br>
<br>
vtkContextView view<br>
<br>
I successfully get the expected plot.<br>
<br>
The problem now is how to close the window with a mouse click. Any
hints?<br>
<br>
<blockquote
cite="mid:CANwS1=Ggh0opQaPYBL9NGiD3YT1WekfGLwDEcMis=fMW0mCQmg@mail.gmail.com"
type="cite">
<div dir="ltr">
<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? <br>
</span></div>
</div>
</blockquote>
<br>
Yes, it is mandatory. We have the system Lisp -> Tcl -> Vtk
for drawing 3D scenes from Computer Algebra System Maxima:<br>
<br>
<a class="moz-txt-link-freetext" href="http://riotorto.users.sourceforge.net/vtk/">http://riotorto.users.sourceforge.net/vtk/</a><br>
<br>
Tcl is a dependency to be satisfied by Maxima, which is also used
for other purposes.<br>
<br>
I am trying to know how far we can go with Vtk for plotting 2D
scenes, in order to extend the Maxima-Vtk interface.<br>
<br>
<br>
<blockquote
cite="mid:CANwS1=Ggh0opQaPYBL9NGiD3YT1WekfGLwDEcMis=fMW0mCQmg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><span style="font-size:12.8px"> 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>
<br>
</div>
</blockquote>
<br>
Thanks again for your help.<br>
<br>
--<br>
Mario<br>
</body>
</html>