! 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 */
| 13667 | \see graphCount, addGraph |
| 13668 | */ |
| 13669 | QCPGraph *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 |
no test coverage detected