Borrar filtros
Borrar filtros

Set default fontsize in figures

22 visualizaciones (últimos 30 días)
Anthony Amorosi
Anthony Amorosi el 25 de Nov. de 2020
Editada: Anthony Amorosi el 25 de Nov. de 2020
Hello,
I am trying to setup a startup file with default parameters so that all my figures are consistent (same fonstize, linewidth, interpreter, etc). Everythings work fine except for the fontsize!
I would like the fontsize of the ticks on the x- and y-axis to be sligthly smaller than the label and legend fontsize. I used the following command in my sartup.m file:
set(groot, ...
'defaultAxesFontSize',14, ...
'defaultTextFontSize',20, ...
'defaultLegendFontSize',20, ...
)
It usually works when I manually use those lines (with gca and not groot) after every figure. But here, 'defaultAxesFontSize' sets the fontsize of all of the figure, it seems that 'defaultTextFontSize' and 'defaultLegendFontSize' do not change anything to the figure (even if I put the fontsize to 40 or higher).
Do anyone know why it does not work ? Thanks !
Anthony.

Respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by