| 699 | } |
| 700 | |
| 701 | void MultiRangeTest::shiftLeft_AllRanges() { |
| 702 | LOAD_PROJECT |
| 703 | auto refValuesAxis1 = vertAxisP1->tickLabelValues(); |
| 704 | auto refValuesAxis2 = vertAxis2P1->tickLabelValues(); |
| 705 | auto refValuesAxis3 = vertAxis3P1->tickLabelValues(); |
| 706 | horAxisP1->setSelected(true); |
| 707 | p1->shiftLeftX(); |
| 708 | |
| 709 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0.1, 1.1); // shift |
| 710 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1., 1.); |
| 711 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0.1, 1.1); // shift |
| 712 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -250., 250.); |
| 713 | CHECK_RANGE(p1, logCurve, Dimension::X, 10., 110.); // shift |
| 714 | CHECK_RANGE(p1, logCurve, Dimension::Y, -10., 6.); |
| 715 | |
| 716 | // check auto scale (all) |
| 717 | p1->navigate(-1, CartesianPlot::NavigationOperation::ScaleAutoX); |
| 718 | |
| 719 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0., 1.); |
| 720 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1., 1.); |
| 721 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0., 1.); |
| 722 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -250., 250.); |
| 723 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 724 | CHECK_RANGE(p1, logCurve, Dimension::Y, -10., 6.); |
| 725 | |
| 726 | // check if retransform is done by comparing the tickLabelValues |
| 727 | COMPARE_DOUBLE_VECTORS(vertAxisP1->tickLabelValues(), refValuesAxis1); |
| 728 | COMPARE_DOUBLE_VECTORS(vertAxis2P1->tickLabelValues(), refValuesAxis2); |
| 729 | COMPARE_DOUBLE_VECTORS(vertAxis3P1->tickLabelValues(), refValuesAxis3); // on third axis there is no autoscale |
| 730 | } |
| 731 | |
| 732 | void MultiRangeTest::shiftRight_AllRanges() { |
| 733 | LOAD_PROJECT |
nothing calls this directly
no test coverage detected