Reset the figure configuration to the default

6 vues (au cours des 30 derniers jours)
Mohammed
Mohammed le 27 Sep 2017
I want to reset the attached figure configuration (Matalb 2016b) to the default i.e change the backgrounds to white and whole text labels and axes ticks to black

Réponses (1)

Walter Roberson
Walter Roberson le 27 Sep 2017
ax = gca;
ax.Color = [1 1 1];
Leg = ax.Legend;
if ~isempty(Leg)
Leg.TextColor = [0 0 0];
end

Community Treasure Hunt

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

Start Hunting!

Translated by