| 452 | } |
| 453 | |
| 454 | void MultiRangeTest::zoomInY_SingleRange() { |
| 455 | LOAD_PROJECT |
| 456 | auto refValuesAxis1 = vertAxisP1->tickLabelValues(); |
| 457 | auto refValuesAxis2 = vertAxis2P1->tickLabelValues(); |
| 458 | auto refValuesAxis3 = vertAxis3P1->tickLabelValues(); |
| 459 | vertAxisP1->setSelected(true); |
| 460 | p1->zoomInY(0); |
| 461 | |
| 462 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0., 1.); |
| 463 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1., 1.); |
| 464 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0., 1.); |
| 465 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -200., 200.); // zoom |
| 466 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 467 | CHECK_RANGE(p1, logCurve, Dimension::Y, -10., 6.); |
| 468 | |
| 469 | // check auto scale |
| 470 | p1->navigate(0, CartesianPlot::NavigationOperation::ScaleAutoY); |
| 471 | |
| 472 | CHECK_RANGE(p1, sinCurve, Dimension::X, 0., 1.); |
| 473 | CHECK_RANGE(p1, sinCurve, Dimension::Y, -1., 1.); |
| 474 | CHECK_RANGE(p1, tanCurve, Dimension::X, 0., 1.); |
| 475 | CHECK_RANGE(p1, tanCurve, Dimension::Y, -250., 250.); |
| 476 | CHECK_RANGE(p1, logCurve, Dimension::X, 0., 100.); |
| 477 | CHECK_RANGE(p1, logCurve, Dimension::Y, -10., 6.); |
| 478 | |
| 479 | COMPARE_DOUBLE_VECTORS(vertAxisP1->tickLabelValues(), refValuesAxis1); |
| 480 | COMPARE_DOUBLE_VECTORS(vertAxis2P1->tickLabelValues(), refValuesAxis2); |
| 481 | COMPARE_DOUBLE_VECTORS(vertAxis3P1->tickLabelValues(), refValuesAxis3); // on third axis there is no autoscale, because it uses a different range |
| 482 | } |
| 483 | |
| 484 | void MultiRangeTest::zoomInY_AllRanges() { |
| 485 | LOAD_PROJECT |
nothing calls this directly
no test coverage detected