set foreground color to match foreground color in legend.