gnuplot不识别语法的情节 [英] gnuplot not recognizing plot for syntax

查看:185
本文介绍了gnuplot不识别语法的情节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个数据文件colhead.dat:

  Id a1 a2 a3 
1 1 2 3
2 2 3 4
3 2 3 4

继以下答案 https://stackoverflow.com / a / 17525615/429850 ,我做了

  gnuplot> (i)
^
':'expected
pre>

我如何编写for循环?这是gnuplot版本的头文件

pre $ 版本4.2 patchlevel 6
上次修改时间2009年9月
系统:Linux 2.6。 32-71.el6.x86_64


解决方案

已经在gnuplot的4.6版本中实现了,之前版本中没有任何循环。所以你必须更新你的版本!






编辑:正如Christoph提到的, 4.4中引入了code>功能。不过,4.2太旧了。

I am trying to use the for syntax for multiple columns.

I have a data file colhead.dat:

Id a1 a2 a3
1  1  2  3
2  2  3  4
3  2  3  4

Following the answer https://stackoverflow.com/a/17525615/429850, I do

gnuplot>  plot for [i=2:5] 'colhead.dat' u 1:i w lp title columnheader(i)
                    ^
         ':' expected

How do i write the for loop? Here's the gnuplot version header

Version 4.2 patchlevel 6
last modified Sep 2009
System: Linux 2.6.32-71.el6.x86_64

解决方案

For-loops have been implemented in version 4.6 of gnuplot, and there was nothing like loops in the versions before. So you have to update your version!


Edit: As Christoph mentioned, first for functionality was introduced in 4.4. However, 4.2 is too old.

这篇关于gnuplot不识别语法的情节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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