如何设置绘图窗口的窗口大小?
是否可以设置绘图窗口(图)的窗口大小/位置?
plot(0:20, sin(0:20))
或者是否有其他可能更改 print() 命令的大小?
print('aa.png', '-dpng')
因为 -Sxsize,ysize 参数不会改变任何内容。 写入的图片 (aa.png) 的大小始终与绘图窗口的大小相同。
我正在使用 Octave 3.0。
Is it possible to set the window size / position of a plot window (figure)?
plot(0:20, sin(0:20))
Or is there any other possibility to change the size of the print() command?
print('aa.png', '-dpng')
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.
I'm using Octave 3.0.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,有可能:
[startx,starty] 是图形(窗口)左下角的坐标。
您还可以使用打印功能的分辨率选项
我想第一个解决方案可能会更好......
问候
Yes, it is possible:
[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
I guess the first solution might be better...
Regards
如果你想最大化,可以使用下面的代码:
You can use the code below if you want to maximize:
从 Octave 版本 4.2.2 开始,如 Janusz Lenar 所指出的,以下内容有效:
它将数字缩放为创建 1280x720 像素图像。
As of octave version 4.2.2, the following works, as pointed out by Janusz Lenar:
Which scales the figure to create a 1280x720 pixel image.