avoid having colorbars without background color

This commit is contained in:
Martin Pernollet 2016-04-14 15:08:07 +02:00
parent 551018e9bb
commit 905a61884e
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ public class AWTColorbarLegend extends AWTLegend implements IColorbarLegend {
}
public AWTColorbarLegend(AbstractDrawable parent, IAxeLayout layout) {
this(parent, layout.getZTickProvider(), layout.getZTickRenderer(), layout.getMainColor(), null);
this(parent, layout.getZTickProvider(), layout.getZTickRenderer(), layout.getMainColor(), layout.getMainColor().negative());
}
public AWTColorbarLegend(AbstractDrawable parent, IAxeLayout layout, Color foreground) {