| 482 | } |
| 483 | |
| 484 | void MultiRangeTest::zoomInY_AllRanges() { |
| 485 | LOAD_PROJECT |
| 486 | auto refValuesAxis1 = vertAxisP1->tickLabelValues(); |
| 487 | auto refValuesAxis2 = vertAxis2P1->tickLabelValues(); |
| 488 | auto refValuesAxis3 = vertAxis3P1->tickLabelValues(); |
| 489 | vertAxisP1->setSelected(true); |
| 490 | p1->zoomInY(); |
| 491 | |
| 492 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0., 1.); |
| 493 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -0.8, 0.8); // zoom |
| 494 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0., 1.); |
| 495 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -200., 200.); // zoom |
| 496 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 497 | CHECK_RANGE(p1, logCurve, Dimension::Y, -8., 4.); // zoom |
| 498 | |
| 499 | // check auto scale |
| 500 | p1->navigate(-1, CartesianPlot::NavigationOperation::ScaleAutoY); |
| 501 | |
| 502 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0., 1.); |
| 503 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1., 1.); |
| 504 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0., 1.); |
| 505 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -250., 250.); |
| 506 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 507 | CHECK_RANGE(p1, logCurve, Dimension::Y, -10., 6.); |
| 508 | |
| 509 | COMPARE_DOUBLE_VECTORS(vertAxisP1->tickLabelValues(), refValuesAxis1); |
| 510 | COMPARE_DOUBLE_VECTORS(vertAxis2P1->tickLabelValues(), refValuesAxis2); |
| 511 | QVector<double> ref = {-10, -6, -2, 2, 6}; |
| 512 | COMPARE_DOUBLE_VECTORS(vertAxis3P1->tickLabelValues(), ref); // vertAxis3 is not autoscaled when loading, after autoscaling the values are different |
| 513 | } |
| 514 | |
| 515 | void MultiRangeTest::zoomOutX_SingleRange() { |
| 516 | LOAD_PROJECT |
nothing calls this directly
no test coverage detected