如何设置绘图窗口的窗口大小? [英] How can I set the window size of a plot window?
问题描述
是否可以设置绘图窗口的窗口大小/位置(图)?
Is it possible to set the window size / position of a plot window (figure)?
plot(0:20, sin(0:20))
还是还有其他可能改变 print()命令的大小?
Or is there any other possibility to change the size of the print() command?
print('aa.png', '-dpng')
因为 -Sxsize,ysize 参数没有任何改变.手写图片(aa.png)的大小始终与绘图窗口相同.
Because the -Sxsize,ysize parameter doesn't change anything. The size of the written picture (aa.png) has always the same size as the plot window.
我正在使用Octave 3.0.
I'm using Octave 3.0.
推荐答案
是的,有可能:
figure(1, 'position',[startx,starty,width,height]);
plot(0:20,sin(0:20));
[startx,starty]是图形左下角(窗口)的坐标.
[startx,starty] are the coordinates for the lower left corner of your figure (window).
您还可以使用打印功能的分辨率选项
You can also use the resolution option of the print function
print('aa.png','-dpng','-r300');
我想第一个解决方案可能会更好...
I guess the first solution might be better...
致谢
这篇关于如何设置绘图窗口的窗口大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!