gnuplot画出不同的类

来源:互联网 发布:windows服务器监控 编辑:程序博客网 时间:2024/05/29 17:37

对于数据文件如a.txt:

10.6970.460120.7740.376130.6340.264140.6080.318150.5560.215160.4030.237170.4810.149180.4370.211190.6660.0910100.2430.2670110.2450.0570120.3430.0990130.6390.1610140.6570.1980150.3600.3700160.5830.0420170.7190.10

需要用第二第三列做图,且根据第四列信息分类,则输入

gnuplot> plot "xigua.txt" using 2:($4==1? $3 : 1/0) title 'good', "xigua.txt" using 2:($4==0? $3:1/0) title 'not good'

效果如图



原创粉丝点击