! 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 */
| 13762 | \see removeGraph |
| 13763 | */ |
| 13764 | int QCustomPlot::clearGraphs() |
| 13765 | { |
| 13766 | int c = mGraphs.size(); |
| 13767 | for (int i=c-1; i >= 0; --i) |
| 13768 | removeGraph(mGraphs[i]); |
| 13769 | return c; |
| 13770 | } |
| 13771 | |
| 13772 | /*! |
| 13773 | Returns the number of currently existing graphs in the plot |
no test coverage detected