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

Method setGradient

qcustomplot/qcustomplot.cpp:19539–19548  ·  view source on GitHub ↗

! Sets the color gradient that will be used to represent data values. It is equivalent to calling QCPColorMap::setGradient on any of the connected color maps. \see setDataRange, setDataScaleType */

Source from the content-addressed store, hash-verified

19537 \see setDataRange, setDataScaleType
19538*/
19539void QCPColorScale::setGradient(const QCPColorGradient &gradient)
19540{
19541 if (mGradient != gradient)
19542 {
19543 mGradient = gradient;
19544 if (mAxisRect)
19545 mAxisRect.data()->mGradientImageInvalidated = true;
19546 emit gradientChanged(mGradient);
19547 }
19548}
19549
19550/*!
19551 Sets the axis label of the color scale. This is equivalent to calling \ref QCPAxis::setLabel on

Callers

nothing calls this directly

Calls 1

dataMethod · 0.80

Tested by

no test coverage detected