MCPcopy Create free account
hub / github.com/KDE/labplot / autoScale

Method autoScale

src/backend/worksheet/plots/cartesian/CartesianPlot.cpp:1284–1293  ·  view source on GitHub ↗

is auto scale enabled for x axis index (index == -1: all axes)

Source from the content-addressed store, hash-verified

1282
1283// is auto scale enabled for x axis index (index == -1: all axes)
1284bool CartesianPlot::autoScale(const Dimension dim, int index) const {
1285 if (index == -1) {
1286 for (int i = 0; i < rangeCount(dim); i++) {
1287 if (!range(dim, i).autoScale())
1288 return false;
1289 }
1290 return true;
1291 }
1292 return range(dim, index).autoScale();
1293}
1294
1295class CartesianPlotEnableAutoScaleIndexCmd : public QUndoCommand {
1296public:

Callers 9

redoMethod · 0.45
enableAutoScaleMethod · 0.45
finalizeMethod · 0.45
setRangeMethod · 0.45
retransformScaleMethod · 0.45
retransformScalesMethod · 0.45
saveMethod · 0.45
loadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected