! Returns a list of all the graphs that have this axis as key or value axis. \see plottables, items */
| 8713 | \see plottables, items |
| 8714 | */ |
| 8715 | QList<QCPGraph*> QCPAxis::graphs() const |
| 8716 | { |
| 8717 | QList<QCPGraph*> result; |
| 8718 | if (!mParentPlot) return result; |
| 8719 | |
| 8720 | for (int i=0; i<mParentPlot->mGraphs.size(); ++i) |
| 8721 | { |
| 8722 | if (mParentPlot->mGraphs.at(i)->keyAxis() == this || mParentPlot->mGraphs.at(i)->valueAxis() == this) |
| 8723 | result.append(mParentPlot->mGraphs.at(i)); |
| 8724 | } |
| 8725 | return result; |
| 8726 | } |
| 8727 | |
| 8728 | /*! |
| 8729 | Returns a list of all the items that are associated with this axis. An item is considered |