[vtkusers] Remove all plots from vtkChartXY
Jothy
jothybasu at gmail.com
Mon Aug 15 10:23:13 EDT 2011
Hi all,
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
contextView->GetRenderer()->RemoveAllViewProps();
But it doesn't work!
My loop is somehting like this
vtkSmartPointer<vtkChartXY> chart =
vtkSmartPointer<vtkChartXY>::New();
for (int x=0;x<10;x++)
{
vtkPlot *line = chart->AddPlot(vtkChart::LINE);
line->SetInput(table, 0, 1);
}
contextview->GetInteractor()->Initialize();
contextView->view->GetInteractor()->Start();
Any suggestions?
Thanks
Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110815/f6613b1f/attachment.htm>
More information about the vtkusers
mailing list