Merge pull request #1747 from SiboVG/issue-1743
[#1743] Better background color for optimization plot
This commit is contained in:
commit
5f11766e9a
@ -95,6 +95,14 @@ public class OptimizationPlotDialog extends JDialog {
|
||||
throw new IllegalArgumentException("Invalid dimensionality, dim=" + modifiers.size());
|
||||
}
|
||||
chart.setBorder(BorderFactory.createLineBorder(Color.BLACK));
|
||||
Color backgroundColor = new Color(240, 240, 240);
|
||||
chart.getChart().setBackgroundPaint(backgroundColor);
|
||||
if (chart.getChart().getLegend() != null) {
|
||||
chart.getChart().getLegend().setBackgroundPaint(Color.WHITE);
|
||||
}
|
||||
chart.getChart().getXYPlot().setBackgroundPaint(Color.WHITE);
|
||||
chart.getChart().getXYPlot().setRangeGridlinePaint(Color.lightGray);
|
||||
chart.getChart().getXYPlot().setDomainGridlinePaint(Color.lightGray);
|
||||
panel.add(chart, "span, grow, wrap para");
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user