| 606 | } |
| 607 | |
| 608 | void MultiRangeTest::zoomOutY_AllRanges() { |
| 609 | LOAD_PROJECT |
| 610 | auto refValuesAxis1 = vertAxisP1->tickLabelValues(); |
| 611 | auto refValuesAxis2 = vertAxis2P1->tickLabelValues(); |
| 612 | auto refValuesAxis3 = vertAxis3P1->tickLabelValues(); |
| 613 | vertAxisP1->setSelected(true); |
| 614 | p1->zoomOutY(); |
| 615 | |
| 616 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0., 1.); |
| 617 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1.5, 1.5); // zoom |
| 618 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0., 1.); |
| 619 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -300., 300.); // zoom |
| 620 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 621 | CHECK_RANGE(p1, logCurve, Dimension::Y, -12., 8.); // zoom |
| 622 | |
| 623 | // check auto scale (all) |
| 624 | p1->navigate(-1, CartesianPlot::NavigationOperation::ScaleAuto); |
| 625 | |
| 626 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0., 1.); |
| 627 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1., 1.); |
| 628 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0., 1.); |
| 629 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -250., 250.); |
| 630 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 631 | CHECK_RANGE(p1, logCurve, Dimension::Y, -10., 6.); |
| 632 | |
| 633 | COMPARE_DOUBLE_VECTORS(vertAxisP1->tickLabelValues(), refValuesAxis1); |
| 634 | COMPARE_DOUBLE_VECTORS(vertAxis2P1->tickLabelValues(), refValuesAxis2); |
| 635 | QVector<double> ref = {-10, -6, -2, 2, 6}; |
| 636 | COMPARE_DOUBLE_VECTORS(vertAxis3P1->tickLabelValues(), ref); // vertAxis3 is not autoscaled when loading, after autoscaling the values are different |
| 637 | } |
| 638 | |
| 639 | // SHIFT |
| 640 |
nothing calls this directly
no test coverage detected