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

Method showAxisLabels

gui/src/plotwidget.cpp:344–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342void PlotWidget::setShowXAxisLabels(bool newShowXAxisLabels) { m_showXAxisLabels = newShowXAxisLabels; }
343
344void PlotWidget::showAxisLabels()
345{
346 if(m_selectedChannel != nullptr) {
347 m_selectedChannel->xAxis()->setVisible(m_showXAxisLabels);
348 m_selectedChannel->yAxis()->setVisible(m_showYAxisLabels);
349 } else {
350 xAxis()->setVisible(m_showXAxisLabels);
351 yAxis()->setVisible(m_showXAxisLabels);
352 }
353}
354
355void PlotWidget::selectChannel(PlotChannel *ch)
356{

Callers 7

showPlotLabelsMethod · 0.80
applyPlotFlagsMethod · 0.80
showPlotLabelsMethod · 0.80
GRTimePlotAddonMethod · 0.80
refreshAxisLabelsMethod · 0.80
showPlotLabelsMethod · 0.80

Calls 3

setVisibleMethod · 0.45
xAxisMethod · 0.45
yAxisMethod · 0.45

Tested by

no test coverage detected