Changeset 4579 in ntrip for trunk/BNC/src/rinex/availplot.cpp


Ignore:
Timestamp:
Aug 29, 2012, 4:48:42 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/availplot.cpp

    r4578 r4579  
    33#include <qwt_symbol.h>
    44#include <qwt_plot_curve.h>
     5#include <qwt_plot_grid.h>
    56#include <qwt_legend.h>
    67
     
    1112: QwtPlot(parent) {
    1213
    13   setTitle("Availability Plot");
     14  setTitle("Availability Plot"); 
     15
     16  setCanvasBackground(QColor(Qt::white));
    1417
    1518  // Legend
     
    1720  QwtLegend* legend = new QwtLegend;
    1821  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);
    1930
    2031  // Axes
     
    3647    double yData[epochs.size()];
    3748    for (int ii = 0; ii < epochs.size(); ii++) {
    38       xData[ii] = epochs[ii]/1.e5;
     49      xData[ii] = epochs[ii];
    3950      yData[ii] = iC;
    4051    }
     
    4556    QwtPlotCurve* curve = new QwtPlotCurve(prn);
    4657    curve->setSymbol( symbol );
    47     ///    curve->setStyle( QwtPlotCurve::NoCurve );
     58    curve->setStyle( QwtPlotCurve::NoCurve );
    4859    curve->setLegendAttribute( QwtPlotCurve::LegendShowSymbol );
    4960    curve->setXAxis(QwtPlot::xBottom);
Note: See TracChangeset for help on using the changeset viewer.