isis/src/qisis/objs/PlotWindow/PlotWindow.cpp
void PlotWindow::clearPlotCurves() {
    const QwtPlotItemList &plotItems = m_plot->itemList();

    for (int itemIndex = plotItems.size()- 1; itemIndex >= 0; itemIndex --) {
      QwtPlotItem *item = plotItems[itemIndex];

      if (item->rtti() == QwtPlotItem::Rtti_PlotCurve ||
          item->rtti() == QwtPlotItem::Rtti_PlotHistogram) {
        delete item;
      }
    }

    replot();
  }
/**
   * This method also clears the plot of all plot items, but does
   * not call the table delete stuff This method is called from
   * plotTool each time the changePlot() method is called.
   */
This method also clears the plot of all plot items, but does
not call the table delete stuff This method is called from
plotTool each time the changePlot() method is called.
This method also clears the plot of all plot items but does not call the table delete stuff This method is called from plotTool each time the changePlot () method is called .
void PlotWindow::clearPlotCurves() {
    const QwtPlotItemList &plotItems = m_plot->itemList();
    for (int itemIndex = plotItems.size()- 1; itemIndex >= 0; itemIndex --) {
      QwtPlotItem *item = plotItems[itemIndex];
      if (item->rtti() == QwtPlotItem::Rtti_PlotCurve ||
          item->rtti() == QwtPlotItem::Rtti_PlotHistogram) {
        delete item;
      }
    }
    replot();
  }
void PlotWindow :: clearPlotCurves ( ) { const QwtPlotItemList & plotItems = m_plot -> itemList ( ) ; for ( int itemIndex = plotItems . size ( ) - 1 ; itemIndex >= 0 ; itemIndex -- ) { QwtPlotItem * item = plotItems [ itemIndex ] ; if ( item -> rtti ( ) == QwtPlotItem :: Rtti_PlotCurve || item -> rtti ( ) == QwtPlotItem :: Rtti_PlotHistogram ) { delete item ; } } replot ( ) ; }
This method also clears the plot of all plot items, but does
 not call the table delete stuff This method is called from
 plotTool each time the changePlot() method is called.
This method also clears the plot of all plot items but does not call the table delete stuff This method is called from plotTool each time the changePlot () method is called .