我正在用gnuplot做一个gif图,我的数据被分成了几个块。我需要点是白色的,除了从 只是 每一个数据块的第一行,这将是一个橙色的点。
目前我的代码是
#...
do for [i=0:int(STATS_blocks-1)]{
plot "positions.txt" index i pt 7 ps 0.5 lc 'white' title "t = ".((i+1)*200)." Myr"
}
如你所见 这将每个数据点绘制成白色 包括第一行
编辑后,显示可变的点大小也
如果我对你的数据格式理解正确的话。
set linetype 11 lc "orange"
set linetype 12 lc "white"
set style data points
do for [i=0:N] {
plot "positions.txt" index i using 1:2:(column(0)>0 ? 0.5 : 2.0):(column(0)>0 ? 12 : 11) pt 7 ps variable lc variable
}
变量颜色(如果使用)总是从最后一个颜色中提取 using
列。其他变量属性从那里开始工作。