自动最大化图形 [英] Automatically maximize a figure
问题描述
我正在MATLAB中创建一些图形并将其自动保存到文件中.从定义上讲图像很小的问题.手动解决问题的一种好方法是创建图像(图),将其最大化并保存到文件中.
I am creating some figures in MATLAB and automatically save them to files. The problem that by definition the images are small. A good way to solve my problem by hand is to create an image (figure), maximize it, and save to a file.
我缺少自动最大化图形的步骤.
I am missing this step of automatically maximize a figure.
有什么建议吗? 到目前为止,我只发现了这一点:
Any suggestions? Up till now I only found this:
http://answers.yahoo.com/question/index?qid=20071127135551AAR5JYh
http://www.mathworks.com/matlabcentral/newsreader/view_thread/238699
但没有一个能解决我的问题.
but none are solving my problem.
推荐答案
这对我有用:
figure('units','normalized','outerposition',[0 0 1 1])
或针对当前数字:
set(gcf,'units','normalized','outerposition',[0 0 1 1])
我还在使用Java的FileExchange上使用了 MAXIMIZE 函数.这是真正的最大化.
I have also used MAXIMIZE function on FileExchange that uses java. This is true maximization.
这篇关于自动最大化图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!