Ylabel FontSize setting for existing plot/subplots or figures

조회 수: 2 (최근 30일)
Safiya
Safiya 2016년 5월 30일
댓글: Safiya 2016년 5월 30일
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

채택된 답변

Jos (10584)
Jos (10584) 2016년 5월 30일
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
Safiya
Safiya 2016년 5월 30일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by