2017-03-09 67 views

回答

2

您可以使用suplabelFileExchange已经合并Xÿ标签的所有次要情节。

例子:

subplot(1,2,1); 
plot(randperm(40)); hold on; plot(randperm(40)); %Plotting some random data 
legend('show') %To show the legend 

subplot(1,2,2); 
plot(randperm(40)); hold on; plot(randperm(40)); %Plotting some random data 
legend('show') %To show the legend 

%Using suplabel from the FileExchange to give a single x and y label for all subplots 
suplabel('Combined X label','x'); 
suplabel('Combined Y label','y'); 

输出:

outputsuplabel


有时你必须最大限度的身影窗口看到xlabel当我们ing suplabel

相关问题