MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / recalculateAxes_

Method recalculateAxes_

src/openms_gui/source/VISUAL/Plot2DWidget.cpp:106–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 8

stringClass · 0.85
setAxisBoundsMethod · 0.80
minXMethod · 0.80
maxXMethod · 0.80
minYMethod · 0.80
maxYMethod · 0.80
canvasFunction · 0.50
setLegendMethod · 0.45

Tested by

no test coverage detected