Changeset - 62a88b598bdb
[Not reviewed]
default
0 2 0
Hasan Yavuz Ă–ZDERYA - 10 years ago 2015-07-25 16:32:21
hy@ozderya.net
added grid
2 files changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
plot.cpp
Show inline comments
 
@@ -28,6 +28,8 @@ Plot::Plot(QWidget* parent) :
 
    QObject::connect(&zoomer, &Zoomer::unzoomed, this, &Plot::unzoomed);
 

	
 
    zoomer.setZoomBase();
 
    grid.setPen(Qt::lightGray);
 
    grid.attach(this);
 
}
 

	
 
void Plot::setAxis(bool autoScaled, double yAxisMin, double yAxisMax)
plot.h
Show inline comments
 
@@ -18,6 +18,7 @@
 
*/
 

	
 
#include <qwt_plot.h>
 
#include <qwt_plot_grid.h>
 
#include "zoomer.h"
 

	
 
class Plot : public QwtPlot
 
@@ -32,6 +33,7 @@ private:
 
    bool isAutoScaled;
 
    double yMin, yMax;
 
    Zoomer zoomer;
 
    QwtPlotGrid grid;
 

	
 
    void resetAxes();
 

	
0 comments (0 inline, 0 general)