How can I fix the legend text color?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have generated legends using Matlab 2016b and Matlab 2013b. However, the quality of the default legend text color is not good in 2016b (see the first image). Legend texts were not even legible after printing. How I get the legend text color in 2016b as same as the default legend text color of 2013b (see the second image)? Please let me know. Thank you very much.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160359/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160360/image.png)
>>
0 comentarios
Respuestas (1)
Walter Roberson
el 3 de Feb. de 2017
Try asking for more than one output from legend(). That will trigger it to use a different way of building the text -- and if it is still not quite right then the handles in the second output can be used to change the properties.
4 comentarios
Walter Roberson
el 4 de Feb. de 2017
visible on or off would not cause problems with the legend() call, but without the "hold on" the second call to style() is going to remove the output of the first call to style, leading to you passing deleted handles into legend()
Ver también
Categorías
Más información sobre Legend en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!