Gnuplot change color of bars in histogram

后端 未结 4 1187
遥遥无期
遥遥无期 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:58

    Actually you can also use linecolor rgb variable and give the color like this:

    plot 'bm_speedup.dat' using 2:xtic(1):($2 >= 0 ? 0x00FF00 : 0xFF0000) ti Speedup lc rgb variable
    

提交回复
热议问题