matlab – 摆脱图中的“图1”

栏目: 编程工具 · 发布时间: 7年前

内容简介:http://stackoverflow.com/questions/10929020/get-rid-of-figure-1-in-the-title-of-the-figure

我有一个数字,我想要他的名字是步骤2的3:模拟绘图窗口,但其名称是:图2:步骤2之3:模拟绘图窗口.

我怎么能把他的名字改成我想要的名字?

我不知道是否有必要,但是在我写的代码的开头:

hFig = figure('Name','window 1','Visible','Off');

和我的代码结束,我写道:

hFig = figure('Name','Step 2 of 3: Simulation Plot Window','Menubar','none', 'Resize','off', ...
    'WindowStyle','modal', 'Position',[300 300 1150 600]);

标题中显示的数字是该图的属性之一.

默认设置为开,除非您使用GUIDE.

无论如何,为了删除它,使用

set(gcf,'NumberTitle','off');

一个更好的方法是使用从调用图形函数获取的句柄:

hFig = figure('Name','window 1','Visible','Off');
set(hFig,'NumberTitle','off');

另外,(作为@GuntherStruyf也提到),可以在对图形函数本身的调用中做到这一点:

hFig = figure('Name','window 1','Visible','Off','NumberTitle','off');

http://stackoverflow.com/questions/10929020/get-rid-of-figure-1-in-the-title-of-the-figure


以上所述就是小编给大家介绍的《matlab – 摆脱图中的“图1”》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Writing Apache Modules with Perl and C

Writing Apache Modules with Perl and C

Lincoln Stein、Doug MacEachern / O'Reilly Media, Inc. / 1999-03 / USD 39.95

Apache is the most popular Web server on the Internet because it is free, reliable, and extensible. The availability of the source code and the modular design of Apache makes it possible to extend Web......一起来看看 《Writing Apache Modules with Perl and C》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

MD5 加密
MD5 加密

MD5 加密工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具