Ylabel FontSize setting for existing plot/subplots or figures
    8 次查看(过去 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
0 个评论
采纳的回答
  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
更多回答(0 个)
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Graphics Object Properties 的更多信息
			
	产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

