! 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 */
| 14479 | \see removeGraph |
| 14480 | */ |
| 14481 | int QCustomPlot::clearGraphs() |
| 14482 | { |
| 14483 | int c = mGraphs.size(); |
| 14484 | for (int i=c-1; i >= 0; --i) |
| 14485 | removeGraph(mGraphs[i]); |
| 14486 | return c; |
| 14487 | } |
| 14488 | |
| 14489 | /*! |
| 14490 | Returns the number of currently existing graphs in the plot |