! Returns the axis with the given \a index on the axis rect side specified with \a type. \see axisCount, axes */
| 16847 | \see axisCount, axes |
| 16848 | */ |
| 16849 | QCPAxis *QCPAxisRect::axis(QCPAxis::AxisType type, int index) const |
| 16850 | { |
| 16851 | QList<QCPAxis*> ax(mAxes.value(type)); |
| 16852 | if (index >= 0 && index < ax.size()) |
| 16853 | { |
| 16854 | return ax.at(index); |
| 16855 | } else |
| 16856 | { |
| 16857 | qDebug() << Q_FUNC_INFO << "Axis index out of bounds:" << index; |
| 16858 | return 0; |
| 16859 | } |
| 16860 | } |
| 16861 | |
| 16862 | /*! |
| 16863 | Returns all axes on the axis rect sides specified with \a types. |