| 825 | } |
| 826 | |
| 827 | void MultiRangeTest::shiftUp_AllRanges() { |
| 828 | LOAD_PROJECT |
| 829 | auto refValuesAxis1 = vertAxisP1->tickLabelValues(); |
| 830 | auto refValuesAxis2 = vertAxis2P1->tickLabelValues(); |
| 831 | vertAxisP1->setSelected(true); |
| 832 | p1->shiftUpY(); |
| 833 | |
| 834 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0., 1.); |
| 835 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1.2, 0.8); // shift |
| 836 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0., 1.); |
| 837 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -300., 200.); // shift |
| 838 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 839 | CHECK_RANGE(p1, logCurve, Dimension::Y, -11.6, 4.4); // shift |
| 840 | |
| 841 | // check auto scale |
| 842 | p1->setSelected(true); |
| 843 | p1->navigate(-1, CartesianPlot::NavigationOperation::ScaleAuto); |
| 844 | |
| 845 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0., 1.); |
| 846 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1., 1.); |
| 847 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0., 1.); |
| 848 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -250., 250.); |
| 849 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 850 | CHECK_RANGE(p1, logCurve, Dimension::Y, -10., 6.); |
| 851 | // retransform of vertAxisP1 is done, so the tickLabelValues change back |
| 852 | COMPARE_DOUBLE_VECTORS(vertAxisP1->tickLabelValues(), refValuesAxis1); |
| 853 | COMPARE_DOUBLE_VECTORS(vertAxis2P1->tickLabelValues(), refValuesAxis2); |
| 854 | QVector<double> ref = {-10, -6, -2, 2, 6}; |
| 855 | COMPARE_DOUBLE_VECTORS(vertAxis3P1->tickLabelValues(), ref); // vertAxis3 is not autoscaled when loading, after autoscaling the values are different |
| 856 | } |
| 857 | |
| 858 | void MultiRangeTest::shiftDown_AllRanges() { |
| 859 | LOAD_PROJECT |
nothing calls this directly
no test coverage detected