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

Method deleteCurveNoAutoscale

tests/cartesianplot/CartesianPlotTest.cpp:259–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void CartesianPlotTest::deleteCurveNoAutoscale() {
260 LOAD_PROJECT_HISTOGRAM_FIT_CURVE
261 const auto cs = plot->coordinateSystem(curve2->coordinateSystemIndex());
262 plot->enableAutoScale(Dimension::Y, cs->index(Dimension::Y), false, false);
263
264 CHECK_RANGE(plot, curve1, Dimension::X, -4., 4.);
265 CHECK_RANGE(plot, curve1, Dimension::Y, 0., 1.);
266
267 // delete curve in plot
268 plot->removeChild(curve2);
269
270 CHECK_RANGE(plot, curve1, Dimension::X, -4., 4.);
271 CHECK_RANGE(plot, curve1, Dimension::Y, 0., 1.);
272
273 QCOMPARE(plot->autoScale(Dimension::Y, cs->index(Dimension::Y)), false);
274}
275
276void CartesianPlotTest::invisibleCurveAutoscale() {
277 LOAD_PROJECT_HISTOGRAM_FIT_CURVE

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected