Borrar filtros
Borrar filtros

Ylabel FontSize setting for existing plot/subplots or figures

3 visualizaciones (últimos 30 días)
Safiya
Safiya el 30 de Mayo de 2016
Comentada: Safiya el 30 de Mayo de 2016
Hi,
I have plotted a figure using margin(sys), which automatically plots two sub graphs top and bottom. now i want to increase the fontSize and fontWeight of the existing generated figure for the Ylabels and Xlabel. Thanks

Respuesta aceptada

Jos (10584)
Jos (10584) el 30 de Mayo de 2016
ah = findobj(gcf,'Type','Axes') % handles to all the axes in the current figure
lh = get(ah,{'ylabel','xlabel'}) % handles to all the x- and y-labels of these axes
set([lh{:}],'fontsize', 30) % change the font size
  1 comentario
Safiya
Safiya el 30 de Mayo de 2016
Thanks ,
it works for 1- Ylabel and changes the fontsize, but the x-axis font is not affected. 2- also i would like to change the font of axis ticks and color to black

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by