Changeset 4579 in ntrip for trunk/BNC/src/rinex/availplot.cpp
- Timestamp:
- Aug 29, 2012, 4:48:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/availplot.cpp
r4578 r4579 3 3 #include <qwt_symbol.h> 4 4 #include <qwt_plot_curve.h> 5 #include <qwt_plot_grid.h> 5 6 #include <qwt_legend.h> 6 7 … … 11 12 : QwtPlot(parent) { 12 13 13 setTitle("Availability Plot"); 14 setTitle("Availability Plot"); 15 16 setCanvasBackground(QColor(Qt::white)); 14 17 15 18 // Legend … … 17 20 QwtLegend* legend = new QwtLegend; 18 21 insertLegend(legend, QwtPlot::RightLegend); 22 23 24 // grid 25 QwtPlotGrid *grid = new QwtPlotGrid; 26 grid->enableXMin(true); 27 grid->setMajPen(QPen(Qt::gray, 0, Qt::DotLine)); 28 grid->setMinPen(QPen(Qt::gray, 0 , Qt::DotLine)); 29 grid->attach(this); 19 30 20 31 // Axes … … 36 47 double yData[epochs.size()]; 37 48 for (int ii = 0; ii < epochs.size(); ii++) { 38 xData[ii] = epochs[ii] /1.e5;49 xData[ii] = epochs[ii]; 39 50 yData[ii] = iC; 40 51 } … … 45 56 QwtPlotCurve* curve = new QwtPlotCurve(prn); 46 57 curve->setSymbol( symbol ); 47 ///curve->setStyle( QwtPlotCurve::NoCurve );58 curve->setStyle( QwtPlotCurve::NoCurve ); 48 59 curve->setLegendAttribute( QwtPlotCurve::LegendShowSymbol ); 49 60 curve->setXAxis(QwtPlot::xBottom);
Note:
See TracChangeset
for help on using the changeset viewer.