<div dir="ltr"><div><div><div>Hi Mario, could you add this to your scripts in order to see what vtk packages are loaded?<br><br></div>puts [lsearch -inline -all [package names] vtk*]<br><br></div>in my vtk 5.10 I obtain this:<br>
<br>vtkCommonTCL vtkHybridTCL vtkChartsTCL vtkGeovisTCL vtkParallelTCL vtkVolumeRenderingTCL vtkRenderingTCL vtkIOTCL vtkGraphicsTCL vtkImagingTCL vtkFilteringTCL vtkViewsTCL vtkInfovisTCL vtkWidgetsTCL<br><br></div>HTH<br>
<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/13 Mario Rodriguez <span dir="ltr">&lt;<a href="mailto:biomates@telefonica.net" target="_blank">biomates@telefonica.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
El 13/12/13 20:06, Jorge Perez escribió:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Could you post the file prueba.tcl?<br>
<br>
</blockquote>
<br></div>
Thanks for your response.<br>
<br>
There is nothing special in the script. Due to the lack of examples, I&#39;m trying to introduce myself in vtkChartXY+tcl step by step. According to my (limited) understanding of the subject, if I remove the # symbol below, the script behavior shouldn&#39;t change, but what I get is the mentioned error message.<br>

<br>
Once the vtkChartXY object is created, I want to build a 2d scene with it, inspired by existing &#39;c++&#39; and &#39;py&#39; scripts, and remove the ellipse, which isn&#39;t of interest for me.<br>
<br>
Here is the code:<br>
<br>
<br>
<br>
<br>
<br>
<br>
package require vtk<br>
package require vtkinteraction<br>
<br>
vtkImageEllipsoidSource ellipse<br>
vtkImageMapper mapImage<br>
  mapImage SetInputConnection [ellipse GetOutputPort]<br>
vtkActor2D img<br>
  img SetMapper mapImage<br>
<br>
# vtkChartXY chart<br>
<br>
vtkRenderer ren1<br>
  ren1 AddActor2D img<br>
<br>
vtkRenderWindow renWin<br>
  renWin AddRenderer ren1<br>
<br>
vtkRenderWindowInteractor iren<br>
    iren SetRenderWindow renWin<br>
    iren Initialize<br>
    iren AddObserver UserEvent {wm deiconify .vtkInteract}<br>
    renWin Render<br>
wm withdraw .<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Mario<br>
<br>
<br>
</blockquote></div><br></div>