在后台以八度为单位打印图 [英] Print Plot in Octave in Background

查看:83
本文介绍了在后台以八度为单位打印图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我使用print -dpng foo.png在Ubuntu的Octave 3.0.1中将图打印到文件中.

Currently, I use print -dpng foo.png to print a plot to file in Octave 3.0.1 on Ubuntu.

有时候,我会循环生成数千张图像.

Sometimes, I generate thousands of images in a loop.

每当弹出新图像时,它都会抓住鼠标控件,使我无法进行多任务处理.

Whenever a new image pops up, it grabs the mouse control precluding me from multitasking.

反正有无声打印吗?

推荐答案

使用有关您正在做的事情的更多信息来回答您的问题会更容易.但是稍作猜测,也许这就是您所需要的:

It would be easier to answer your question with a little more information about what you are doing. But with a little guessing maybe this is what you need:

f = figure
set(f, "visible", "off")
plot([1,2,3,4])
print("MyPNG.png", "-dpng")

这篇关于在后台以八度为单位打印图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆