| 1568 | }; |
| 1569 | |
| 1570 | RangeT::Scale CartesianPlot::rangeScale(const Dimension dim, const int index) const { |
| 1571 | if (index < 0 || index > rangeCount(dim)) { |
| 1572 | DEBUG(Q_FUNC_INFO << ", index " << index << " out of range") |
| 1573 | return RangeT::Scale::Linear; |
| 1574 | } |
| 1575 | return range(dim, index).scale(); |
| 1576 | } |
| 1577 | |
| 1578 | RangeT::Scale CartesianPlot::xRangeScale() const { |
| 1579 | return xRangeScale(defaultCoordinateSystem()->index(Dimension::X)); |