MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / axis

Method axis

qcustomplot/qcustomplot.cpp:16888–16899  ·  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

16886 \see axisCount, axes
16887*/
16888QCPAxis *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.

Callers 3

QCustomPlotMethod · 0.80
foreachFunction · 0.80
setTypeMethod · 0.80

Calls 2

atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected