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

Method setTickLabelRotation

qcustomplot/qcustomplot.cpp:7962–7969  ·  view source on GitHub ↗

! Sets the rotation of the tick labels. If \a degrees is zero, the labels are drawn normally. Else, the tick labels are drawn rotated by \a degrees clockwise. The specified angle is bound to values from -90 to 90 degrees. If \a degrees is exactly -90, 0 or 90, the tick labels are centered on the tick coordinate. For other angles, the label is drawn with an offset such that it seems to

Source from the content-addressed store, hash-verified

7960 the tick mark.
7961*/
7962void QCPAxis::setTickLabelRotation(double degrees)
7963{
7964 if (!qFuzzyIsNull(degrees-mAxisPainter->tickLabelRotation))
7965 {
7966 mAxisPainter->tickLabelRotation = qBound(-90.0, degrees, 90.0);
7967 mCachedMarginValid = false;
7968 }
7969}
7970
7971/*!
7972 Sets whether the tick labels (numbers) shall appear inside or outside the axis rect.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected