diff --git a/mainwindow.cpp b/mainwindow.cpp index a30982160..7cc4d7203 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//------------------------------------------------------------ MainWindow +//------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h" diff --git a/plotter.cpp b/plotter.cpp index 2842211c3..c42b836f9 100644 --- a/plotter.cpp +++ b/plotter.cpp @@ -122,7 +122,14 @@ void CPlotter::draw(float swide[], float red[], int i0) //draw() painter1.drawPoint(i,0); y2=0; if(m_bCurrent) y2 = 0.4*gain*y - 15; - if(m_bCumulative) y2=1.5*gain*10.0*log10(jt9com_.savg[i]) - 20; + if(m_bCumulative) { + float sum=0.0; + int j=m_binsPerPixel*i; + for(int k=0; k