Commit 6fcde1961b52c5a304cca1ccd77e2bc093981be9
1 parent
7e32b5fc
Exists in
master
and in
87 other branches
ok pour scatter plot
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
src/ParamOutputImpl/Plot/Scatter/XYPlot.cc
... | ... | @@ -356,6 +356,7 @@ void XYPlot::calculatePlotArea(const Bounds& panelBounds_, Bounds& bounds_) { |
356 | 356 | } |
357 | 357 | |
358 | 358 | lVerticalRange = lYAxis->getRange(); |
359 | + | |
359 | 360 | // Get gap for this parameter data |
360 | 361 | if (lVerticalRange.isSet()) { |
361 | 362 | double lTmpVerticalAxisGap = fabs(lVerticalRange.getMin() - lVerticalRange.getMax()); |
... | ... | @@ -866,6 +867,8 @@ void XYPlot::configureSeriesAxis() { |
866 | 867 | lEstimatedRange.setMax(std::max(lEstimatedRange.getMax(), lParamIndexRange.getMax())); |
867 | 868 | } |
868 | 869 | fixRange(lEstimatedRange, lYAxis->_scale == Axis::Scale::LOGARITHMIC); |
870 | + if(lEstimatedRange.getMin()==lEstimatedRange.getMax()) | |
871 | + lEstimatedRange.setMargin(0.05); | |
869 | 872 | } |
870 | 873 | lEstimatedRange._extend = lYRange._extend; |
871 | 874 | lAxisRangeMap[lYAxis->_id] = lEstimatedRange; |
... | ... | @@ -897,6 +900,8 @@ void XYPlot::configureSeriesAxis() { |
897 | 900 | lEstimatedRange.setMin(std::min(lEstimatedRange.getMin(), lRangeSampling.getMin())); |
898 | 901 | lEstimatedRange.setMax(std::max(lEstimatedRange.getMax(), lRangeSampling.getMax())); |
899 | 902 | } |
903 | + if(lEstimatedRange.getMin()==lEstimatedRange.getMax()) | |
904 | + lEstimatedRange.setMargin(0.05); | |
900 | 905 | fixRange(lEstimatedRange, lXAxis->_scale == Axis::Scale::LOGARITHMIC); |
901 | 906 | lAxisRangeMap[lXAxis->_id] = lEstimatedRange; |
902 | 907 | } |
... | ... | @@ -928,6 +933,8 @@ void XYPlot::configureSeriesAxis() { |
928 | 933 | lEstimatedRange.setMin(std::min(lEstimatedRange.getMin(), lParamIndexRange.getMin())); |
929 | 934 | lEstimatedRange.setMax(std::max(lEstimatedRange.getMax(), lParamIndexRange.getMax())); |
930 | 935 | } |
936 | + if(lEstimatedRange.getMin()==lEstimatedRange.getMax()) | |
937 | + lEstimatedRange.setMargin(0.05); | |
931 | 938 | fixRange(lEstimatedRange, lZAxis->_scale == Axis::Scale::LOGARITHMIC); |
932 | 939 | lEstimatedRange._extend = lRange._extend; |
933 | 940 | lColorAxeRange = lEstimatedRange; | ... | ... |