6
使用的gnuplot
我試圖創建一個具有以下數據的疊加柱狀圖:用於堆放直方圖
8.01 1 5 1
8.02 3 5 1
8.03 4 4 1
8.04 3 4 1
8.05 1 2 1
我試圖從第四例子,此刻我使用這個適應的腳本:
set title "Test"
set key invert reverse Left outside
set key autotitle columnheader
set style data histogram
set style histogram rowstacked
set style fill solid border -1
set boxwidth 0.75
plot 'test.dat' using 2:xtic(1), '' using 2 title 'Col1', '' using 3 title 'Col2', '' using 4 title 'Col3'
我不知道的部分是using 2:xtic(1)
。我知道這使得它使用xtic
值作爲第一列,這正是我想要的。但我不知道using 2
部件代表什麼。這是腳本產生什麼樣的截圖:
一切,除了紅酒吧,不應該出現在圖像上的罰款。有人能向我解釋爲什麼它出現以及如何擺脫它?