<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1419001563922_5731">Hi all,</div><div id="yui_3_16_0_1_1419001563922_6176" dir="ltr"><br></div><div id="yui_3_16_0_1_1419001563922_6474" dir="ltr">Yesterday I started exploring the options to draw 2d graphs in VTK.<br></div><div id="yui_3_16_0_1_1419001563922_6475" dir="ltr"><br></div><div id="yui_3_16_0_1_1419001563922_6175" dir="ltr">Why does</div><div id="yui_3_16_0_1_1419001563922_5750" dir="ltr"><br></div><div id="yui_3_16_0_1_1419001563922_6174" dir="ltr">m_pChart->GetPlot(0)->SetInputData(0);</div><div id="yui_3_16_0_1_1419001563922_6173" dir="ltr"><br></div><div id="yui_3_16_0_1_1419001563922_6172" dir="ltr">not remove the graph from my chart?</div><div id="yui_3_16_0_1_1419001563922_6171" dir="ltr"><br></div><div id="yui_3_16_0_1_1419001563922_6170" dir="ltr"><br></div><div id="yui_3_16_0_1_1419001563922_6169" dir="ltr">I am currently using <br></div><div id="yui_3_16_0_1_1419001563922_6168" dir="ltr">vtkTable* table = m_pChart->GetPlot(0)->GetInput();</div><div id="yui_3_16_0_1_1419001563922_6167" dir="ltr">if( 0 != table )</div><div id="yui_3_16_0_1_1419001563922_6166" dir="ltr">{</div><div id="yui_3_16_0_1_1419001563922_6165" dir="ltr"> while( 0 < table->GetNumberOfRows() )</div><div id="yui_3_16_0_1_1419001563922_5961" dir="ltr"> {</div><div id="yui_3_16_0_1_1419001563922_5962" dir="ltr"> table->RemoveRow(0);</div><div id="yui_3_16_0_1_1419001563922_5963" dir="ltr"> }</div><div id="yui_3_16_0_1_1419001563922_5964" dir="ltr">}</div><div id="yui_3_16_0_1_1419001563922_6164" dir="ltr"><br></div><div id="yui_3_16_0_1_1419001563922_6163" dir="ltr">m_pChart->GetPlot(0)->GetData()->Modified(); // <- required!</div><div id="yui_3_16_0_1_1419001563922_6160" dir="ltr"><br></div><div id="yui_3_16_0_1_1419001563922_6161" dir="ltr">This works, but complains about trying to draw a line with less than 2 points.</div><div id="yui_3_16_0_1_1419001563922_6162" dir="ltr"><br></div><div dir="ltr">Thanks - Maarten<br></div></div></body></html>