GNUPLOT bar plot 繪製,並用條紋填充

set terminal postscript font "Helvetica, 16"
set boxwidth 0.9 absolute
set style fill pattern 2 border lt -1
set style histogram clustered gap 1 title  offset character 0, 0, 0
set datafile missing '-'
set style data histograms
set yrange [ 0.00000 : 100. ] noreverse nowriteback
set grid
set xlabel "Probing Rate (Gbps)" font "Helvetica,20"
set ylabel "Estimation Error Rate (%)" font "Helvetica, 20"
set output "prcmt_n32.ps"
plot 'n32.dat' using 2:xtic(1) ti "after shared link", '' u 7 ti "at receiver", '' u 12 ti "at receiver with BASS"
set output "prcmt_n64.ps"
plot 'n64.dat' using 2:xtic(1) ti "after shared link", '' u 7 ti "at receiver", '' u 12 ti "at receiver with BASS"

set output "prcmt_n128.ps"
plot 'n128.dat' using 2:xtic(1) ti "after shared link", '' u 7 ti "at receiver", '' u 12 ti "at receiver with BASS"
set output "prcmt_n320.ps"
plot 'n320.dat' using 2:xtic(1) ti "after shared link", '' u 7 ti "at receiver", '' u 12 ti "at receiver with BASS"


更多例子請看: 

http://gnuplot.sourceforge.net/demo/histograms.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章