Why does the legend font color not change when I set COLORDEF to 'black' in MATLAB 7.0.1 (R14SP1)?

1 view (last 30 days)
If I change the color defaults using:
colordef black
after I have created a figure containing a legend, the legend font color is still black, and therefore unreadable. By comparison, the axes labels and ticks and other color defaults automatically change to provide the necessary contrast to the black axes background.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 2006a (R2006a). For previous product releases, read below for any possible workarounds:
We have verified that this is a bug in MATLAB 7.0.1 (R14SP1) in the way that legend text is displayed after the COLORDEF is set to black.
To work around this issue, set COLORDEF at the beginning of a new session of MATLAB. This behavior is exhibited only if the COLORDEF is changed after a legend has previously been created during the current session of MATLAB. If the COLORDEF is changed at the beginning of a MATLAB session, the legend font color will change to white and display properly.

More Answers (0)

Categories

Find more on Data Distribution Plots in Help Center and File Exchange

Products


Release

R14SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!