##// END OF EJS Templates
Implements spectrograms display (3)...
Alexandre Leroux -
r904:b4b8a9876f21
parent child
Show More
@@ -183,6 +183,17 struct PlottablesUpdater<T,
183 183 template <typename T>
184 184 struct PlottablesUpdater<T,
185 185 typename std::enable_if_t<std::is_base_of<SpectrogramSeries, T>::value> > {
186 static void setPlotYAxisRange(T &dataSeries, const SqpRange &xAxisRange, QCustomPlot &plot)
187 {
188 double min, max;
189 /// @todo ALX: use iterators here
190 std::tie(min, max) = dataSeries.yAxis().bounds();
191
192 if (!std::isnan(min) && !std::isnan(max)) {
193 plot.yAxis->setRange(QCPRange{min, max});
194 }
195 }
196
186 197 static void updatePlottables(T &dataSeries, PlottablesMap &plottables, const SqpRange &range,
187 198 bool rescaleAxes)
188 199 {
General Comments 0
You need to be logged in to leave comments. Login now