MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / setDataScaleType

Method setDataScaleType

3rdparty/qcustomplot/qcustomplot.cpp:20276–20287  ·  view source on GitHub ↗

! Sets the scale type of the color scale, i.e. whether values are associated with colors linearly or logarithmically. It is equivalent to calling QCPColorMap::setDataScaleType on any of the connected color maps. It is also equivalent to directly accessing the \ref axis and setting its scale type with \ref QCPAxis::setScaleType. Note that this method controls the coordinate transf

Source from the content-addressed store, hash-verified

20274 \see setDataRange, setGradient
20275*/
20276void QCPColorScale::setDataScaleType(QCPAxis::ScaleType scaleType)
20277{
20278 if (mDataScaleType != scaleType)
20279 {
20280 mDataScaleType = scaleType;
20281 if (mColorAxis)
20282 mColorAxis.data()->setScaleType(mDataScaleType);
20283 if (mDataScaleType == QCPAxis::stLogarithmic)
20284 setDataRange(mDataRange.sanitizedForLogScale());
20285 emit dataScaleTypeChanged(mDataScaleType);
20286 }
20287}
20288
20289/*!
20290 Sets the color gradient that will be used to represent data values.

Callers

nothing calls this directly

Calls 3

setScaleTypeMethod · 0.80
sanitizedForLogScaleMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected