MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 如何对图形的图例进行分栏 (https://www.labfans.com/bbs/showthread.php?t=9260)

zhoulon 2009-07-19 14:04

如何对图形的图例进行分栏
 
2 个附件
我现在绘出了如图11.jpg中的图形,但是图例看起来不好看,而且遮住了一部分图形,我现在想将这个图例拿出来,标注成如图文献.jpg中的图例那样的图形,其实就是如何将我的图中的四个图例分成两行(就像文献那个图形那样),其中每一行有两个图例的问题。

zhoulon 2009-07-19 14:05

回复: 如何对图形的图例进行分栏
 
1 个附件
我通过利用get和set命令,用下面的代码修改为如图所示的图例,但是如何修改为我说的两行两列的图例形式呀。现在只是将图例由垂直方向改变为水平方向了。
[code]
m=legend([h15 h1 h02(1) h01(1)],'\Pi_1_1(\lambda)','\Pi_2_2(\lambda)', ...
'The vertical asymptotes of \Pi_1_1(\lambda)','The vertical asymptotes of \Pi_2_2(\lambda)');
set(m,'Orientation','horizontal')
[/code]


所有时间均为北京时间。现在的时间是 03:45

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.