| 114 | QWidget *PlotManager::plotCombo(ChannelComponent *c) { return m_channelPlotcomboMap[c]; } |
| 115 | |
| 116 | void 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 | |
| 131 | void PlotManager::addChannel(ChannelComponent *c) |
| 132 | { |