| 104 | } |
| 105 | |
| 106 | void Plot2DWidget::recalculateAxes_() |
| 107 | { |
| 108 | // set names |
| 109 | x_axis_->setLegend(string(canvas()->getMapper().getDim(DIM::X).getDimName())); |
| 110 | y_axis_->setLegend(string(canvas()->getMapper().getDim(DIM::Y).getDimName())); |
| 111 | |
| 112 | const auto& area = canvas()->getVisibleArea().getAreaXY(); |
| 113 | x_axis_->setAxisBounds(area.minX(), area.maxX()); |
| 114 | y_axis_->setAxisBounds(area.minY(), area.maxY()); |
| 115 | } |
| 116 | |
| 117 | void Plot2DWidget::toggleProjections() |
| 118 | { |