Changeset 4686 in ntrip
- Timestamp:
- Sep 9, 2012, 12:12:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/dopplot.cpp
r4685 r4686 72 72 73 73 enableAxis(QwtPlot::yRight); 74 setAxisTitle(QwtPlot::yLeft, "# Sat"); 75 setAxisTitle(QwtPlot::yRight, "PDOP"); 74 75 QwtText textPDOP("PDOP"); 76 QFont fontPDOP = textPDOP.font(); 77 fontPDOP.setPointSize(fontPDOP.pointSize()*0.8); 78 textPDOP.setFont(fontPDOP); 79 textPDOP.setColor(Qt::red); 80 setAxisTitle(QwtPlot::yRight, textPDOP); 81 setAxisScale(QwtPlot::yRight, 0, 6); 82 83 QwtText textNumSat("# Sat"); 84 QFont fontNumSat = textNumSat.font(); 85 fontNumSat.setPointSize(fontNumSat.pointSize()*0.8); 86 textNumSat.setFont(fontNumSat); 87 textNumSat.setColor(Qt::blue); 88 setAxisTitle(QwtPlot::yLeft, textNumSat); 76 89 setAxisScale(QwtPlot::yLeft, 0, 20); 77 setAxisScale(QwtPlot::yRight, 0, 6);78 90 79 91 // Legend … … 86 98 if (obsStat) { 87 99 88 QwtPlotCurve* curveNumSat = new QwtPlotCurve( "# Sat");100 QwtPlotCurve* curveNumSat = new QwtPlotCurve(textNumSat); 89 101 curveNumSat->setXAxis(QwtPlot::xBottom); 90 102 curveNumSat->setYAxis(QwtPlot::yLeft); 91 103 curveNumSat->setSamples(obsStat->_mjdX24, obsStat->_numSat); 92 curveNumSat->setPen(QPen( Qt::blue));104 curveNumSat->setPen(QPen(textNumSat.color())); 93 105 curveNumSat->attach(this); 94 106 95 QwtPlotCurve* curvePDOP = new QwtPlotCurve( "PDOP");107 QwtPlotCurve* curvePDOP = new QwtPlotCurve(textPDOP); 96 108 curvePDOP->setXAxis(QwtPlot::xBottom); 97 109 curvePDOP->setYAxis(QwtPlot::yRight); 98 110 curvePDOP->setSamples(obsStat->_mjdX24, obsStat->_PDOP); 99 curvePDOP->setPen(QPen( Qt::red));111 curvePDOP->setPen(QPen(textPDOP.color())); 100 112 curvePDOP->attach(this); 101 113 }
Note:
See TracChangeset
for help on using the changeset viewer.