MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / zoomToBase

Method zoomToBase

gui/src/plotmagnifier.cpp:313–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313void PlotMagnifier::zoomToBase()
314{
315 if(m_baseRect.isNull()) {
316 return;
317 }
318
319 if(isXAxisEn()) {
320 plot()->setAxisScale(m_xAxis, m_baseRect.left(), m_baseRect.right());
321 }
322 if(isYAxisEn()) {
323 plot()->setAxisScale(m_yAxis, m_baseRect.top(), m_baseRect.bottom());
324 }
325
326 plot()->replot();
327 m_isZoomed = false;
328}
329
330#include "moc_plotmagnifier.cpp"

Callers

nothing calls this directly

Calls 2

topMethod · 0.80
replotMethod · 0.45

Tested by

no test coverage detected