MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / applyRectToAxes

Method applyRectToAxes

pj_plotting/widget/src/PlotWidgetBase.cpp:309–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309void PlotWidgetBase::applyRectToAxes(const QRectF& rect) {
310 plot_->setAxisScale(QwtPlot::yLeft, std::min(rect.bottom(), rect.top()), std::max(rect.bottom(), rect.top()));
311 plot_->setAxisScale(QwtPlot::xBottom, std::min(rect.left(), rect.right()), std::max(rect.left(), rect.right()));
312 plot_->updateAxes();
313}
314
315Range<double> PlotWidgetBase::getVisualizationRangeX() const {
316 double left = std::numeric_limits<double>::max();

Callers

nothing calls this directly

Calls 2

updateAxesMethod · 0.80
setAxisScaleMethod · 0.45

Tested by

no test coverage detected