MCPcopy Create free account
hub / github.com/collin80/SavvyCAN / clearGraphs

Method clearGraphs

qcustomplot.cpp:13764–13770  ·  view source on GitHub ↗

! 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 */

Source from the content-addressed store, hash-verified

13762 \see removeGraph
13763*/
13764int 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

Callers 8

updateDetailsWindowMethod · 0.80
recalcButtonMethod · 0.80
createGraphMethod · 0.80
updatedFramesMethod · 0.80
removeAllGraphsMethod · 0.80
removeAllGraphsMethod · 0.80
updatedFramesMethod · 0.80
generateGraphMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected