Graph gnuplot条形图不工作

Graph gnuplot条形图不工作,graph,plot,gnuplot,Graph,Plot,Gnuplot,我使用上述命令在gnuplot中绘制条形图。但是生成的图是一种连续的步进图,其中每个框的宽度都很高 上述陈述有什么问题??在gnuplot中绘制条形图的首选方法是什么?请遵循此 data.csv是 plot data_file using 1:2 with box fs solid title "" 而脚本的内容应该是(gnuplot.script) 然后 $gnuplot gnuplot.script "MCU", 1.8 "Radio Tx", 19.5 "Radio Rx", 21.8

我使用上述命令在gnuplot中绘制条形图。但是生成的图是一种连续的步进图,其中每个框的宽度都很高

上述陈述有什么问题??在gnuplot中绘制条形图的首选方法是什么?

请遵循此
data.csv是

plot data_file using 1:2 with box fs solid title ""
而脚本的内容应该是(gnuplot.script)

然后

$gnuplot gnuplot.script

"MCU", 1.8
"Radio Tx", 19.5
"Radio Rx", 21.8
"Flash READ", 4
"Flash WRITE", 20
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