| 283 | } |
| 284 | |
| 285 | void 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 | |
| 301 | void CartesianPlotTest::equationCurveEquationChangedAutoScale() { |
| 302 | LOAD_PROJECT_HISTOGRAM_FIT_CURVE |
nothing calls this directly
no test coverage detected