Change Plot background color and save to file
52 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
leonidas86
am 8 Jun. 2018
Beantwortet: leonidas86
am 13 Jun. 2018
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.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Sai Deepesh Pokala
am 8 Jun. 2018
Try getframe() or export_fig('') after the set gca step.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!