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

Method invisibleCurveNoAutoscale

tests/cartesianplot/CartesianPlotTest.cpp:285–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285void CartesianPlotTest::invisibleCurveNoAutoscale() {
286 LOAD_PROJECT_HISTOGRAM_FIT_CURVE
287 const auto cs = plot->coordinateSystem(curve2->coordinateSystemIndex());
288 plot->enableAutoScale(Dimension::Y, cs->index(Dimension::Y), false, false);
289
290 CHECK_RANGE(plot, curve1, Dimension::X, -4., 4.);
291 CHECK_RANGE(plot, curve1, Dimension::Y, 0., 1.);
292
293 curve2->setVisible(false);
294
295 CHECK_RANGE(plot, curve1, Dimension::X, -4., 4.);
296 CHECK_RANGE(plot, curve1, Dimension::Y, 0., 1.);
297
298 QCOMPARE(plot->autoScale(Dimension::Y, cs->index(Dimension::Y)), false);
299}
300
301void CartesianPlotTest::equationCurveEquationChangedAutoScale() {
302 LOAD_PROJECT_HISTOGRAM_FIT_CURVE

Callers

nothing calls this directly

Calls 6

coordinateSystemIndexMethod · 0.80
coordinateSystemMethod · 0.45
enableAutoScaleMethod · 0.45
indexMethod · 0.45
setVisibleMethod · 0.45
autoScaleMethod · 0.45

Tested by

no test coverage detected