Gnuplot - 脚本中的数据点

7

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

  • 数据文件(包含数据列)
  • gnuplot脚本(用于正确设置范围和标签)

因此,为了绘制图形,我需要两个相关的文件。

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

我正在使用gnuplot 4.4。


也请查看 https://dev59.com/imPVa4cB1Zd3GeqP4lN4。 - Picaud Vincent
1个回答

17

是的,您可以在 gnuplot 脚本中放置数据点。最简单的示例如下:

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

2
我想提醒您,如需更多信息,可以在gnuplot文档中查找“special-filenames”:http://gnuplot.sourceforge.net/docs_4.6/gnuplot.pdf - andyras

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接