<div dir="ltr">Thanks very much Eric, it works!<br><br>is there any way to clear the axis labels, there is no clear in chart->GetAxis(vtkAxis::LEFT)<br><br>Thanks again<br><br>Jothy<br><br><br><div class="gmail_quote">On Tue, Aug 16, 2011 at 12:15 PM, Eric E. Monson <span dir="ltr"><<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word">If I'm understanding correctly what you're trying to do, you should be able to call <div>
<br></div><div>chart->ClearPlots();</div><div><br></div><div>-Eric</div><div><div><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">------------------------------------------------------<br>
Eric E Monson<br>Duke Visualization Technology Group<br></span>
</div><div><br></div>
<br><div><div><div></div><div class="h5"><div>On Aug 15, 2011, at 10:23 AM, Jothy wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5"><div dir="ltr">Hi all,<br><br>I have rendered few line plots using vtkChartXY. But I want to replot some of the data. I looks like it replots everything including X&Y labels. I tried calling <br>
<br>contextView->GetRenderer()->RemoveAllViewProps();<br>
<br>But it doesn't work!<br><br>My loop is somehting like this<br><br><span style="color:#c0c0c0"> </span><span style="color:#808000"></span>vtkSmartPointer<vtkChartXY> chart =<br> vtkSmartPointer<vtkChartXY>::New();<br>
<br>for (int x=0;x<10;x++)<br> {<br>vtkPlot *line = chart->AddPlot(vtkChart::LINE);<br> line->SetInput(table, 0, 1);<br>}<br><br>contextview->GetInteractor()->Initialize();<br>contextView->view->GetInteractor()->Start();<br>
<br>Any suggestions?<br><br>Thanks<br><br>Jothy<br><span style="color:#c0c0c0"> </span><br></div></div></div>
_______________________________________________<br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div></div></div></blockquote></div><br></div>