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

Method updateAxisScales

gui/src/plotmanager.cpp:116–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114QWidget *PlotManager::plotCombo(ChannelComponent *c) { return m_channelPlotcomboMap[c]; }
115
116void PlotManager::updateAxisScales()
117{
118 for(PlotComponent *plt : plots()) {
119 for(PlotWidget *pw : plt->plots()) {
120 pw->yAxis()->scaleDraw()->invalidateCache();
121 pw->xAxis()->scaleDraw()->invalidateCache();
122 if(pw->selectedChannel()) {
123 pw->selectedChannel()->yAxis()->scaleDraw()->invalidateCache();
124 pw->selectedChannel()->xAxis()->scaleDraw()->invalidateCache();
125 }
126 pw->replot();
127 }
128 }
129}
130
131void PlotManager::addChannel(ChannelComponent *c)
132{

Callers 3

updateXModeMethod · 0.80
updateXModeMethod · 0.80
onInitMethod · 0.80

Calls 6

scaleDrawMethod · 0.80
plotsMethod · 0.45
yAxisMethod · 0.45
xAxisMethod · 0.45
selectedChannelMethod · 0.45
replotMethod · 0.45

Tested by

no test coverage detected