From 89c1562b605baaae12aa6353de04cee79620a725 Mon Sep 17 00:00:00 2001 From: Michal Maciejewski Date: Wed, 3 Apr 2019 19:36:35 +0200 Subject: [PATCH] make plot background white (grey conflicted with grey series) --- .../java/com/graphhopper/jsprit/analysis/toolbox/Plotter.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jsprit-analysis/src/main/java/com/graphhopper/jsprit/analysis/toolbox/Plotter.java b/jsprit-analysis/src/main/java/com/graphhopper/jsprit/analysis/toolbox/Plotter.java index 2124fb02..c519e759 100644 --- a/jsprit-analysis/src/main/java/com/graphhopper/jsprit/analysis/toolbox/Plotter.java +++ b/jsprit-analysis/src/main/java/com/graphhopper/jsprit/analysis/toolbox/Plotter.java @@ -302,6 +302,10 @@ public class Plotter { final XYPlot plot = createPlot(problem, shipments, solution); JFreeChart chart = new JFreeChart(title, plot); + plot.setBackgroundPaint(Color.WHITE); + plot.setDomainGridlinesVisible(false); + plot.setRangeGridlinesVisible(false); + LegendTitle legend = createLegend(routes, shipments, plot); chart.removeLegend(); chart.addLegend(legend);