Setting default legend position

9 visualizaciones (últimos 30 días)
Guido Perucchini
Guido Perucchini el 17 de Mayo de 2019
Respondida: Clayton Birchenough el 9 de Sept. de 2019
I'm defining some default print settings for my figures and I would like to set the default legend location as 'best'
% Print settings
set(groot, 'DefaultTextInterpreter', 'LaTeX');
set(groot, 'DefaultAxesTickLabelInterpreter', 'LaTeX');
set(groot, 'DefaultAxesFontName', 'LaTeX');
set(groot, 'DefaultLegendInterpreter', 'LaTeX');
set(groot, 'DefaultAxesBox', 'on');
what is the related command?
thanks!

Respuestas (1)

Clayton Birchenough
Clayton Birchenough el 9 de Sept. de 2019
Yes, to set the default location of the legend to best (in 2019a), use:
set(groot, 'defaultLegendLocation', 'best')

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by