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

Method zoomToBase

gui/src/plotzoomer.cpp:273–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273void PlotZoomer::zoomToBase()
274{
275 if(m_baseRect.isNull()) {
276 return;
277 }
278
279 if(isXAxisEn()) {
280 plot()->setAxisScale(m_xAxis, m_baseRect.left(), m_baseRect.right());
281 }
282 if(isYAxisEn()) {
283 plot()->setAxisScale(m_yAxis, m_baseRect.top(), m_baseRect.bottom());
284 }
285
286 plot()->replot();
287 plot()->repaint();
288 m_isZoomed = false;
289}
290
291#include "moc_plotzoomer.cpp"

Callers

nothing calls this directly

Calls 2

topMethod · 0.80
replotMethod · 0.45

Tested by

no test coverage detected