Gnuplot保留图形窗口 [英] Gnuplot persist graph windows

查看:91
本文介绍了Gnuplot保留图形窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下命令在gnuplot上绘制一个简单的sin(x)图,并使用VS2010 C ++中的管道

I am using the following commands to draw a simple sin(x) plot on gnuplot , with a pipe from VS2010 C++

set terminal windows
set title 'Graph of velocity versus time'
set xrange[0:10]
plot sin (x)

问题是窗口关闭得太快了.我不想使用暂停"命令,因为它会停止整个代码.

Problem is the window keeps closing down too quickly . I don't want to use the 'pause' command as it stop the entire code.

是否有其他方法可以在没有暂停命令的情况下使此窗口保持打开状态?

Is there any other way to keep this window open without the pause command?

欢呼

推荐答案

我无法尝试,但是您尝试过吗

I cant try it, but have you tried

  1. 将终端设置为设置终端x11"
  2. 使用设置终端窗口0"将终端设置为多个用户屏幕
  3. 将输出设置为png或其他图像,然后使用管道打开图像查看器程序

问题是,通过管道设置的命令可能是通过cmd.exe执行的,该命令在gnuplot返回1时即退出(这在成功绘制后完全如此).这样,窗口实例也被破坏了.

The problem is that the command you set via your pipe is probably executed via cmd.exe which exits as soon as gnuplot return 1 (which is totally does after successful plot). With this the instance of the window is destroyed as well.

这篇关于Gnuplot保留图形窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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