| 1637 | } |
| 1638 | |
| 1639 | void CartesianPlot::addCoordinateSystem() { |
| 1640 | auto cSystem = new CartesianCoordinateSystem(this); |
| 1641 | addCoordinateSystem(cSystem); |
| 1642 | // retransform scales, because otherwise the CartesianCoordinateSystem |
| 1643 | // does not have any scales |
| 1644 | retransformScale(Dimension::X, cSystem->index(Dimension::X)); |
| 1645 | retransformScale(Dimension::Y, cSystem->index(Dimension::Y)); |
| 1646 | } |
| 1647 | void CartesianPlot::addCoordinateSystem(CartesianCoordinateSystem* s) { |
| 1648 | m_coordinateSystems.append(s); |
| 1649 | if (project()) |