Change Plot background color and save to file
Afficher commentaires plus anciens
Hello again,
I have multiple plots and I want to have a gray background for them. I have tried:
set(gca,'color','gray')
print(f(1),num2str(SavePath),'-dmeta');
This works in the figure window but when I save the figure with print the saved plot has a white background.
As always any help is greatly appreciated.
Réponse acceptée
Plus de réponses (1)
Sai Deepesh Pokala
le 8 Juin 2018
0 votes
Try getframe() or export_fig('') after the set gca step.
Catégories
En savoir plus sur Animation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!