Gnuplot change color of bars in histogram

后端 未结 4 1188
遥遥无期
遥遥无期 2020-12-25 15:19

is it possible to change the color of bars in a Gnuplot script dynamically? I have the following script

reset
fontsize = 12
set term postscript enhanced eps         


        
4条回答
  •  北海茫月
    2020-12-25 15:43

    Doesn't seem like histogram lets you do it. May be like this:

    set boxwidth 0.3
    f(v)=v<0?1:2
    plot 'bm_speedup.dat' using 0:2:(f($2)):xticlabels(1) with boxes ti "Speedup" lc variable
    

提交回复
热议问题