-1
plot data_file using 1:2 with box fs solid title ""
我正在使用上述命令在gnuplot中绘制条形图。但生成的图形是一个连续的步骤图,每个框的宽度都很高。gnuplot条形图不起作用
上述说明有什么问题?什么是在gnuplot中绘制条形图的首选方法?
plot data_file using 1:2 with box fs solid title ""
我正在使用上述命令在gnuplot中绘制条形图。但生成的图形是一个连续的步骤图,每个框的宽度都很高。gnuplot条形图不起作用
上述说明有什么问题?什么是在gnuplot中绘制条形图的首选方法?
关注该link
data.csv是
"MCU", 1.8
"Radio Tx", 19.5
"Radio Rx", 21.8
"Flash READ", 4
"Flash WRITE", 20
虽然脚本的内容应该是(gnuplot.script)
set boxwidth 1 relative
set style data histograms
set style fill solid 1.0 border -1
set datafile separator ","
plot 'data.csv' using 2:xticlabels(1) notitle
set terminal png truecolor font small size 600,500
set output 'image1.png'
replot
然后
$ gnuplot gnuplot.script