MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / graph

Method graph

qcustomplot/qcustomplot.cpp:13669–13679  ·  view source on GitHub ↗

! Returns the graph with \a index. If the index is invalid, returns 0. There is an overloaded version of this function with no parameter which returns the last created graph, see QCustomPlot::graph() \see graphCount, addGraph */

Source from the content-addressed store, hash-verified

13667 \see graphCount, addGraph
13668*/
13669QCPGraph *QCustomPlot::graph(int index) const
13670{
13671 if (index >= 0 && index < mGraphs.size())
13672 {
13673 return mGraphs.at(index);
13674 } else
13675 {
13676 qDebug() << Q_FUNC_INFO << "index out of bounds:" << index;
13677 return 0;
13678 }
13679}
13680
13681/*! \overload
13682

Calls 3

atMethod · 0.80
sizeMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected