| 1241 | return rangeFormat(Dimension::Y, defaultCoordinateSystem()->index(Dimension::Y)); |
| 1242 | } |
| 1243 | RangeT::Format CartesianPlot::rangeFormat(const Dimension dim, const int index) const { |
| 1244 | Q_D(const CartesianPlot); |
| 1245 | if (index < 0 || index > rangeCount(dim)) { |
| 1246 | DEBUG(Q_FUNC_INFO << ", index " << index << " out of range") |
| 1247 | return RangeT::Format::Numeric; |
| 1248 | } |
| 1249 | return d->rangeConst(dim, index).format(); |
| 1250 | } |
| 1251 | RangeT::Format CartesianPlot::xRangeFormat(const int index) const { |
| 1252 | return rangeFormat(Dimension::X, index); |
| 1253 | } |