如何删除 gnuplot 中的所有零点?
How to delete all zero dots in gnuplot?
这是我的一部分数据
845000 0 0 0 0 0 0
845001 0 0 0 8 0 0
845002 1 0 0 0 0 0
845003 0 0 0 0 0 0
845004 0 0 7 0 0 0
845005 0 0 0 0 0 0
845006 0 0 0 0 0 0
845007 0 2 0 0 0 0
845008 0 0 0 0 0 11
845009 0 0 0 0 0 0
845010 0 0 7 0 0 0
845011 0 0 0 0 9 0
845012 0 0 0 0 0 0
845013 0 0 0 0 0 0
845014 0 0 0 8 0 0
845015 0 0 0 8 0 0
这是我的照片
所以我想删除所有== 0
的点
可能吗?
这是我的剧情线
plot for [col=2:7] 'polaczone845.txt' using 1:col with points pointtype 7 pointsize 1 linecolor "black"
您可以使用 (1/0)
作为将被跳过的未定义值。因此,使用以下 using
表达式:
1:((column(col) == 0 ) ? (1/0) : column(col) )
这是我的一部分数据
845000 0 0 0 0 0 0
845001 0 0 0 8 0 0
845002 1 0 0 0 0 0
845003 0 0 0 0 0 0
845004 0 0 7 0 0 0
845005 0 0 0 0 0 0
845006 0 0 0 0 0 0
845007 0 2 0 0 0 0
845008 0 0 0 0 0 11
845009 0 0 0 0 0 0
845010 0 0 7 0 0 0
845011 0 0 0 0 9 0
845012 0 0 0 0 0 0
845013 0 0 0 0 0 0
845014 0 0 0 8 0 0
845015 0 0 0 8 0 0
这是我的照片
所以我想删除所有== 0
的点可能吗?
这是我的剧情线
plot for [col=2:7] 'polaczone845.txt' using 1:col with points pointtype 7 pointsize 1 linecolor "black"
您可以使用 (1/0)
作为将被跳过的未定义值。因此,使用以下 using
表达式:
1:((column(col) == 0 ) ? (1/0) : column(col) )