Gnuplot-脚本中的数据点 [英] Gnuplot - data points in script

查看:55
本文介绍了Gnuplot-脚本中的数据点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有C ++程序,现在可以生成两个文件:

I have C++ program that now generates two files:

  • 数据文件(带有数据列)
  • gnuplot脚本(正确设置范围和标签)

所以,对于情节,我需要有两个相互关联的文件.

So, for plot I need to have two files which are related to each other.

是否有可能将所有内容打包到一个文件中?我的意思是:将数据点坐标放在gnuplot脚本中?

Is there any possibility, to pack it all to one file? I mean: to put data points coordinates inside gnuplot script?

我正在使用gnuplot 4.4.

I am using gnuplot 4.4.

推荐答案

是的,您可以将数据点放在gnuplot脚本中.最简单的例子是

Yes, you can put datapoints inside your gnuplot script. The simplest example would be

plot "-" with lines, "-" with lines
1 1
2 2
3 3
e
1 3
2 2
3 1

这篇关于Gnuplot-脚本中的数据点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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