! Returns the axis with the given \a index on the axis rect side specified with \a type. \see axisCount, axes */
| 16886 | \see axisCount, axes |
| 16887 | */ |
| 16888 | QCPAxis *QCPAxisRect::axis(QCPAxis::AxisType type, int index) const |
| 16889 | { |
| 16890 | QList<QCPAxis*> ax(mAxes.value(type)); |
| 16891 | if (index >= 0 && index < ax.size()) |
| 16892 | { |
| 16893 | return ax.at(index); |
| 16894 | } else |
| 16895 | { |
| 16896 | qDebug() << Q_FUNC_INFO << "Axis index out of bounds:" << index; |
| 16897 | return 0; |
| 16898 | } |
| 16899 | } |
| 16900 | |
| 16901 | /*! |
| 16902 | Returns all axes on the axis rect sides specified with \a types. |
no test coverage detected