MCPcopy Create free account
hub / github.com/cutechess/cutechess / clearGraphs

Method clearGraphs

projects/gui/3rdparty/qcustomplot/qcustomplot.cpp:14481–14487  ·  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

14479 \see removeGraph
14480*/
14481int 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

Callers 1

setGameMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected