I change the legend font color in a plot but when I save it as a png it doesn't work

2 vues (au cours des 30 derniers jours)
David Zhang
David Zhang le 1 Juil 2021
Commenté : David Zhang le 1 Juil 2021
as you can see above, the figure has the legend color changed, but when I save it as a png it doesn't show.
this is my code for the legend and saving. fi is the figure and name is just a string

Réponses (1)

Sayyed Ahmad
Sayyed Ahmad le 1 Juil 2021
try this:
saveas(gca,'test.png')
  1 commentaire
David Zhang
David Zhang le 1 Juil 2021
I copied the exact thing into the script but unfortunately it didn't change anything

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by