Commit edb2b7f10118c011c3d302417b834649b453765c

Authored by Hacene SI HADJ MOHAND
1 parent 9aec59c6

order ok

Showing 1 changed file with 4 additions and 5 deletions   Show diff stats
src/ParamOutputImpl/Plot/PanelPlotOutput.cc
... ... @@ -2422,17 +2422,17 @@ void PanelPlotOutput::drawSauvaud(double /*startDate*/, double /*stopDate*/, std
2422 2422 Font font_(label.getFont());
2423 2423 int size_ = font_.getSize();
2424 2424 if( font_.getSize() == 0){
2425   - int size_ = std::round(314.5*width-2.7);
  2425 + size_ = std::round(314.5*width-2.7);
2426 2426 size_ = std::max(size_,2);
2427 2427 size_ = std::min(size_,8);
2428   - font_.setSize(std::round(size_));
  2428 + font_.setSize(size_);
2429 2429 label.setFont(font_);
2430 2430 lYAxis->_legend.setLabel(label);
2431 2431 }
2432 2432 bool changed = false;
2433 2433  
2434 2434  
2435   - // Draw legend.
  2435 + // Draw legend for the last spectro.
2436 2436 if(subIndex ==subsNumber -1){
2437 2437 lYAxis->setShowTickMark(true);
2438 2438  
... ... @@ -2444,9 +2444,8 @@ void PanelPlotOutput::drawSauvaud(double /*startDate*/, double /*stopDate*/, std
2444 2444 label._text = opositeLegend;
2445 2445 changed = true;
2446 2446 }
2447   - if(lYAxis->_scale ==Axis::Scale::LOGARITHMIC ){
  2447 + if(lYAxis->_scale ==Axis::Scale::LOGARITHMIC && font_.getSize()>3){
2448 2448 font_.setSize(3);
2449   - label.setFont(font_);
2450 2449 changed = true;
2451 2450 }
2452 2451 lYAxis->_legend.clearLabels();
... ...