I have used that function.. even though the problem exists.. Anyways, I am trying to get rid of that.. once succeeded, will intimate you.<br><br>Thanks<br><br><div class="gmail_quote">On Fri, Mar 2, 2012 at 2:55 PM, Jothybasu Selvaraj <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I think you could use vtkCharts::ClearPlots() to clear the render window.<br><br>Jothy<div><div class="h5">
<br><br><br><br><div class="gmail_quote">On Fri, Mar 2, 2012 at 6:11 AM, rakesh patil <span dir="ltr">&lt;<a href="mailto:prakeshofficial@gmail.com" target="_blank">prakeshofficial@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Thanks Jothy and Marcus,</div>
<div> </div>
<div>It is working fine now. It was crashing because after setting render window, I was setting existing renderer to the view object. Once I commented it it is working fine. Is it that this is the natural behavior? One more thing I observed is that, after viewing the chart when I clear the renderwindow, the interactor style stops funcitoning. No zoom effect is shown when mouse is scrolled. No panning and rotating is also possible.</div>



<div> </div>
<div>Any idea why is this happening?</div>
<div> </div>
<div>Thanks<br><br></div><div><div></div><div>
<div class="gmail_quote">On Thu, Mar 1, 2012 at 10:46 PM, Marcus D. Hanwell <span dir="ltr">&lt;<a href="mailto:marcus.hanwell@kitware.com" target="_blank">marcus.hanwell@kitware.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">You may want to take a look at the Charts/Testing/Cxx directory for<br>some more ideas. You can use vtkContextView as a convenience, but it<br>


is possible to just use vtkContextActor and set things up more<br>manually (the 3D example gives some of the detail).<br><span><font color="#888888"><br>Marcus<br></font></span>
<div>
<div><br>On Thu, Mar 1, 2012 at 6:00 AM, Jothybasu Selvaraj &lt;<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>&gt; wrote:<br>&gt; Yes, it works for me.<br>&gt;<br>&gt; Along with that, did you setup the interactor as well?<br>


&gt;<br>&gt; Have a look at this presentation by Marcus on vtkCharts (on pages 21,22).<br>&gt;<br>&gt; <a href="http://www.na-mic.org/Wiki/images/1/18/NA-MIC-VTK-Charts-2011.pdf" target="_blank">www.na-mic.org/Wiki/images/1/18/NA-MIC-VTK-Charts-2011.pdf</a><br>


&gt;<br>&gt; Jothy<br>&gt;<br>&gt; On Thu, Mar 1, 2012 at 10:47 AM, rakesh patil &lt;<a href="mailto:prakeshofficial@gmail.com" target="_blank">prakeshofficial@gmail.com</a>&gt;<br>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt; Hi Jothy,<br>

&gt;&gt;<br>
&gt;&gt; I tried doing that yesterday. But the application was crashing and closing<br>&gt;&gt; on its own. Are you sure that is the way it has to be done? I mean have you<br>&gt;&gt; worked on it?<br>&gt;&gt;<br>&gt;&gt; Thanks<br>


&gt;&gt;<br>&gt;&gt; On Thu, Mar 1, 2012 at 2:54 PM, Jothybasu Selvaraj &lt;<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>&gt;<br>&gt;&gt; wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Create vtkContextView, then add chart to the contextView with AddItem.<br>


&gt;&gt;&gt; Set the rnderWindow to the contextView.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Jothy<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On Thu, Mar 1, 2012 at 4:43 AM, rakesh patil &lt;<a href="mailto:prakeshofficial@gmail.com" target="_blank">prakeshofficial@gmail.com</a>&gt;<br>


&gt;&gt;&gt; wrote:<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Hello,<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; I am trying to plot XY plots using vtkChartXY example shown here<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Plotting/LinePlot" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Plotting/LinePlot</a><br>


&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; When I run XY plotting code it shows proper output but the plot comes in<br>&gt;&gt;&gt;&gt; another window. Is it possible to redirect the output to the existing<br>&gt;&gt;&gt;&gt; renderer, renderwindow and interactor? If it is possible, please guide to do<br>


&gt;&gt;&gt;&gt; it.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Thanks<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Regards<br>&gt;&gt;&gt;&gt; Rakesh Patil<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; _______________________________________________<br>


&gt;&gt;&gt;&gt; Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Visit other Kitware open-source projects at<br>&gt;&gt;&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>


&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt;&gt;&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;&gt;&gt;&gt;<br>


&gt;&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt;&gt;&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;&gt;&gt;&gt;<br>


&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; --<br>&gt;&gt;&gt; Jothy<br>&gt;&gt;&gt;<br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Jothy<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>


&gt; Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>


&gt;<br>&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>


&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<br></div></div></blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr">Jothy<br></div><br>
</font></span></div>
</blockquote></div><br>