mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
bugfix issue #91 - defined yAxis.rangeValues in case of no range in
analysis.toolbox.AlgorithmSearchProgressChartListener.java
This commit is contained in:
parent
03dc5dd3ff
commit
1b01f141ce
1 changed files with 7 additions and 1 deletions
|
|
@ -124,7 +124,13 @@ public class AlgorithmSearchProgressChartListener implements IterationEndsListen
|
|||
Range rangeBounds = coll.getRangeBounds(true);
|
||||
double upper = Math.min(rangeBounds.getUpperBound(), rangeBounds.getLowerBound()*5);
|
||||
if(upper == 0.0){ upper = 10000; }
|
||||
if(rangeBounds.getLowerBound() == upper){
|
||||
yAxis.setRangeWithMargins(rangeBounds.getLowerBound()-rangeBounds.getLowerBound()*.1,upper+upper*.1);
|
||||
}
|
||||
else{
|
||||
yAxis.setRangeWithMargins(rangeBounds.getLowerBound(),upper);
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
ChartUtilities.saveChartAsJPEG(new File(filename), chart, 1000, 600);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue