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

Method scaleRange

qcustomplot/qcustomplot.cpp:8440–8443  ·  view source on GitHub ↗

! Scales the range of this axis by \a factor around the center of the current axis range. For example, if \a factor is 2.0, then the axis range will double its size, and the point at the axis range center won't have changed its position in the QCustomPlot widget (i.e. coordinates around the center will have moved symmetrically closer). If you wish to scale around a different coordinate

Source from the content-addressed store, hash-verified

8438 overload \ref scaleRange(double factor, double center).
8439*/
8440void QCPAxis::scaleRange(double factor)
8441{
8442 scaleRange(factor, range().center());
8443}
8444
8445/*! \overload
8446

Callers 1

wheelEventMethod · 0.80

Calls 3

rangeFunction · 0.85
sanitizedForLinScaleMethod · 0.80
sanitizedForLogScaleMethod · 0.80

Tested by

no test coverage detected