Changeset 4719 in ntrip


Ignore:
Timestamp:
Sep 10, 2012, 10:52:06 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4686 r4719  
    8787  textNumSat.setColor(Qt::blue);
    8888  setAxisTitle(QwtPlot::yLeft,  textNumSat);
    89   setAxisScale(QwtPlot::yLeft,  0,  20);
     89  double maxNumSat = 20.0;
     90  if (obsStat) {
     91    for (int ii = 0; ii < obsStat->_numSat.size(); ii++) {
     92      if (maxNumSat < obsStat->_numSat[ii]) {
     93        maxNumSat = obsStat->_numSat[ii] + 5;
     94      }
     95    }
     96  }
     97  setAxisScale(QwtPlot::yLeft,  0,  maxNumSat);
    9098
    9199  // Legend
Note: See TracChangeset for help on using the changeset viewer.