Index: trunk/BNC/src/rinex/graphwin.cpp
===================================================================
--- trunk/BNC/src/rinex/graphwin.cpp	(revision 4355)
+++ trunk/BNC/src/rinex/graphwin.cpp	(revision 4356)
@@ -47,6 +47,6 @@
 // Constructor
 ////////////////////////////////////////////////////////////////////////////
-t_graphWin::t_graphWin(QWidget* parent, const QVector<QWidget*>& plots) :
- QDialog(parent) {
+t_graphWin::t_graphWin(QWidget* parent, const QVector<QWidget*>& plots,
+                       const QwtInterval scaleInterval) :  QDialog(parent) {
 
   this->setAttribute(Qt::WA_DeleteOnClose);
@@ -79,10 +79,11 @@
    _colorScale->setTitle( title );
 
-   QwtInterval interval(0.0, 1.0);
-   _colorScale->setColorMap(interval, new t_colorMap());
+   _colorScale->setColorMap(scaleInterval, new t_colorMap());
 
    QwtLinearScaleEngine scaleEngine;
    _colorScale->setScaleDiv(scaleEngine.transformation(),
-      scaleEngine.divideScale(interval.minValue(), interval.maxValue(), 8, 5));
+                            scaleEngine.divideScale(scaleInterval.minValue(), 
+                                                    scaleInterval.maxValue(), 
+                                                    8, 5));
 
   // Layout
Index: trunk/BNC/src/rinex/graphwin.h
===================================================================
--- trunk/BNC/src/rinex/graphwin.h	(revision 4355)
+++ trunk/BNC/src/rinex/graphwin.h	(revision 4356)
@@ -38,7 +38,7 @@
   t_colorMap() : QwtLinearColorMap(Qt::darkBlue, Qt::yellow) {
     addColorStop(0.05, Qt::blue);
-    addColorStop(0.30, Qt::cyan);
-    addColorStop(0.60, Qt::green);
-    addColorStop(0.98, Qt::red);
+//    addColorStop(0.30, Qt::cyan);
+//    addColorStop(0.60, Qt::green);
+    addColorStop(9.98, Qt::red);
   }
 };
@@ -51,5 +51,6 @@
 
  public:
-  t_graphWin(QWidget* parent, const QVector<QWidget*>& plots);
+  t_graphWin(QWidget* parent, const QVector<QWidget*>& plots,
+             const QwtInterval scaleInterval);
   ~t_graphWin();
 
Index: trunk/BNC/src/rinex/polarplot.cpp
===================================================================
--- trunk/BNC/src/rinex/polarplot.cpp	(revision 4355)
+++ trunk/BNC/src/rinex/polarplot.cpp	(revision 4356)
@@ -33,5 +33,5 @@
     QwtSymbol ss(symbol);
     const QwtPointPolar& point = sample(ii);
-    const QColor color = colorMap.color(QwtInterval(0.0, 1.0), point._value);
+    const QColor color = colorMap.color(_scaleInterval, point._value);
     ss.setBrush(QBrush(color));
     ss.setPen(QPen(color));
@@ -42,7 +42,8 @@
 // Constructor
 ////////////////////////////////////////////////////////////////////////////
-t_polarPlot::t_polarPlot(const QwtText& title, QWidget* parent) : 
+t_polarPlot::t_polarPlot(const QwtText& title, const QwtInterval& scaleInterval,
+                         QWidget* parent) : QwtPolarPlot(title, parent) {
 
-  QwtPolarPlot(title, parent) {
+  _scaleInterval = scaleInterval;
 
   setPlotBackground(Qt::white);
@@ -81,4 +82,5 @@
 void t_polarPlot::addCurve(QVector<t_polarPoint*>* data) {
   t_polarCurve* curve = new t_polarCurve();
+  curve->setScaleInterval(_scaleInterval);
   curve->setStyle(QwtPolarCurve::NoCurve);  // draw only symbols
   curve->setSymbol(new QwtSymbol(QwtSymbol::Ellipse,
Index: trunk/BNC/src/rinex/polarplot.h
===================================================================
--- trunk/BNC/src/rinex/polarplot.h	(revision 4355)
+++ trunk/BNC/src/rinex/polarplot.h	(revision 4356)
@@ -12,9 +12,14 @@
   t_polarCurve() {}
   virtual ~t_polarCurve() {}
+  void setScaleInterval(const QwtInterval& scaleInterval) {
+    _scaleInterval = scaleInterval;
+  }
  protected:
-   virtual void drawSymbols(QPainter* painter, const QwtSymbol& symbol, 
-                            const QwtScaleMap& azimuthMap, 
-                            const QwtScaleMap& radialMap, 
-                            const QPointF& pole, int from, int to) const;
+  virtual void drawSymbols(QPainter* painter, const QwtSymbol& symbol, 
+                           const QwtScaleMap& azimuthMap, 
+                           const QwtScaleMap& radialMap, 
+                           const QPointF& pole, int from, int to) const;
+ private:
+  QwtInterval _scaleInterval;
 };
 
@@ -63,8 +68,10 @@
 
  public:
-  t_polarPlot(const QwtText& title, QWidget* = 0);
+  t_polarPlot(const QwtText& title, const QwtInterval& scaleInterval,
+              QWidget* = 0);
   void addCurve(QVector<t_polarPoint*>* data);
 
  private:
+  QwtInterval _scaleInterval;
 };
 
Index: trunk/BNC/src/rinex/reqcanalyze.cpp
===================================================================
--- trunk/BNC/src/rinex/reqcanalyze.cpp	(revision 4355)
+++ trunk/BNC/src/rinex/reqcanalyze.cpp	(revision 4356)
@@ -90,8 +90,28 @@
   if (app->mode() == bncApp::interactive) {
 
-    t_polarPlot* plotMP1 = new t_polarPlot(QwtText("MP1"), app->mainWindow());
+    double maxMP = 0.0;
+    for (int ii = 0; ii < dataMP1->size(); ii++) {
+      double mp = dataMP1->at(ii)->_value;
+      if (maxMP < mp) {
+        maxMP = mp;
+      }
+    }
+    for (int ii = 0; ii < dataMP2->size(); ii++) {
+      double mp = dataMP2->at(ii)->_value;
+      if (maxMP < mp) {
+        maxMP = mp;
+      }
+    }
+
+    qDebug() << maxMP;
+
+    QwtInterval scaleInterval(0.0, maxMP);
+
+    t_polarPlot* plotMP1 = new t_polarPlot(QwtText("MP1"), scaleInterval,
+                                           app->mainWindow());
     plotMP1->addCurve(dataMP1);
 
-    t_polarPlot* plotMP2 = new t_polarPlot(QwtText("MP2"), app->mainWindow());
+    t_polarPlot* plotMP2 = new t_polarPlot(QwtText("MP2"), scaleInterval,
+                                           app->mainWindow());
     plotMP2->addCurve(dataMP2);
     
@@ -100,5 +120,5 @@
     plots << plotMP2;
 
-    t_graphWin* graphWin = new t_graphWin(0, plots);
+    t_graphWin* graphWin = new t_graphWin(0, plots, scaleInterval);
 
     graphWin->show();
