| 730 | } |
| 731 | |
| 732 | void MultiRangeTest::shiftRight_AllRanges() { |
| 733 | LOAD_PROJECT |
| 734 | auto refValuesAxis1 = vertAxisP1->tickLabelValues(); |
| 735 | auto refValuesAxis2 = vertAxis2P1->tickLabelValues(); |
| 736 | auto refValuesAxis3 = vertAxis3P1->tickLabelValues(); |
| 737 | horAxisP1->setSelected(true); |
| 738 | p1->shiftRightX(); |
| 739 | |
| 740 | CHECK_RANGE(p1, sinCurve, Dimension::X, -0.1, 0.9); // shift |
| 741 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1., 1.); |
| 742 | CHECK_RANGE(p1, tanCurve, Dimension::X, -0.1, 0.9); // shift |
| 743 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -250., 250.); |
| 744 | CHECK_RANGE(p1, logCurve, Dimension::X, -10., 90.); // shift |
| 745 | CHECK_RANGE(p1, logCurve, Dimension::Y, -10., 6.); |
| 746 | |
| 747 | // check auto scale |
| 748 | p1->navigate(-1, CartesianPlot::NavigationOperation::ScaleAutoX); |
| 749 | |
| 750 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0., 1.); |
| 751 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1., 1.); |
| 752 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0., 1.); |
| 753 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -250., 250.); |
| 754 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 755 | CHECK_RANGE(p1, logCurve, Dimension::Y, -10., 6.); |
| 756 | |
| 757 | // check if retransform is done by comparing the tickLabelValues |
| 758 | COMPARE_DOUBLE_VECTORS(vertAxisP1->tickLabelValues(), refValuesAxis1); |
| 759 | COMPARE_DOUBLE_VECTORS(vertAxis2P1->tickLabelValues(), refValuesAxis2); |
| 760 | COMPARE_DOUBLE_VECTORS(vertAxis3P1->tickLabelValues(), refValuesAxis3); // on third axis there is no autoscale |
| 761 | } |
| 762 | |
| 763 | void MultiRangeTest::shiftUp_SingleRange() { |
| 764 | LOAD_PROJECT |
nothing calls this directly
no test coverage detected