<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>