! Removes all graphs from the plot and deletes them. Corresponding legend items are also removed from the default legend (QCustomPlot::legend). Returns the number of graphs removed. \see removeGraph */
| 14476 | \see removeGraph |
| 14477 | */ |
| 14478 | int QCustomPlot::clearGraphs() |
| 14479 | { |
| 14480 | int c = mGraphs.size(); |
| 14481 | for (int i=c-1; i >= 0; --i) |
| 14482 | removeGraph(mGraphs[i]); |
| 14483 | return c; |
| 14484 | } |
| 14485 | |
| 14486 | /*! |
| 14487 | Returns the number of currently existing graphs in the plot |