Commit cf664d1b651b8286a8c3956967cbc1d21e038c2d

Authored by Hacene SI HADJ MOHAND
1 parent 23e6e720

resolving 9201

src/ParamOutputImpl/Plot/Axis.hh
... ... @@ -57,6 +57,16 @@ public:
57 57 return _range;
58 58 }
59 59 }
  60 +
  61 + virtual Range getRequestedRange() {
  62 + if (_reverse) {
  63 + Range lRange(_requestedRange.getMax(), _requestedRange.getMin());
  64 + lRange._extend = _requestedRange._extend;
  65 + return lRange;
  66 + } else {
  67 + return _requestedRange;
  68 + }
  69 + }
60 70  
61 71 void setRange(Range const& pRange) {
62 72 _range = pRange;
... ...
src/ParamOutputImpl/Plot/Time/TimePlot.cc
... ... @@ -136,9 +136,10 @@ void TimePlot::configureSeriesAxis() {
136 136 }
137 137  
138 138 lYAxis->_used = true;
139   - Range lRange(lYAxis->getRange());
  139 + Range lYAxisRequestRange = lYAxis->Axis::getRequestedRange();
  140 + Range lRange = lYAxis->Axis::getRange();
140 141 // If range status for this axis is set by the user do not update range "automatically".
141   - if (isnan(lRange.getMin()) && isnan(lRange.getMax())) {
  142 + if (isnan(lYAxisRequestRange.getMin()) && isnan(lYAxisRequestRange.getMax())) {
142 143 Range lEstimatedRange(lAxisRange[lYAxis->_id]);
143 144 for (auto index : lSeriesProperties.getIndexList(_pParameterValues)) {
144 145 Range lParamIndexRange(
... ... @@ -182,7 +183,6 @@ void TimePlot::configureSeriesAxis() {
182 183  
183 184  
184 185 lAxisRange[lYAxis->_id] = lEstimatedRange;
185   - // la
186 186 }
187 187  
188 188 // Set ZAxis range if a color param is defined for this serie
... ... @@ -285,9 +285,10 @@ void TimePlot::configureSpectroAxis() {
285 285  
286 286  
287 287 //set Y axis range
288   - Range lYAxisRange = lYAxis->Axis::getRange();
  288 + Range lYAxisRequestRange = lYAxis->Axis::getRequestedRange();
  289 + Range lYAxisRange = lYAxis->Axis::getRange();
289 290 AMDA::Info::ParamInfoSPtr paramInfo = AMDA::Info::ParamMgr::getInstance()->getParamInfoFromId(p->getInfoId());
290   - if (isnan(lYAxisRange.getMin()) && isnan(lYAxisRange.getMax()))
  291 + if (isnan(lYAxisRequestRange.getMin()) && isnan(lYAxisRequestRange.getMax()))
291 292 {
292 293 boost::shared_ptr<AMDA::Info::ParamTable> tableSPtr;
293 294 if (paramInfo != nullptr)
... ...