MCPcopy Create free account
hub / github.com/LUX-Core/lux / axis

Method axis

src/qt/qcustomplot.cpp:16849–16860  ·  view source on GitHub ↗

! Returns the axis with the given \a index on the axis rect side specified with \a type. \see axisCount, axes */

Source from the content-addressed store, hash-verified

16847 \see axisCount, axes
16848*/
16849QCPAxis *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.

Callers 3

QCustomPlotMethod · 0.80
Q_FOREACHFunction · 0.80
setTypeMethod · 0.80

Calls 3

valueMethod · 0.45
sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected