2017-03-09 126 views
0

我有一個gnuplot的腳本定製gnuplot的羣集柱狀圖x軸標籤

set terminal qt size 850,500 enhanced font 'Verdana,12' persist 
set boxwidth 0.9 absolute 
set ylabel "Duration in milliseconds" #font "Arial 14" 
set tics font "Monospaced,bold 14" 
set style fill solid 1.00 border lt -1 
set key inside right top vertical Right noreverse noenhanced autotitle nobox 
set style histogram cluster gap 1 title textcolor lt -1 
set minussign 
set datafile missing '-' 
set style data histograms 
set xtics border in scale 0,0 nomirror rotate by -45 autojustify 
set xtics norangelimit 
set xtics () 
set title "Integer d-ary heap performance" 
set yrange [0:*] 
set style line 1 lt 1 lc rgb "#000000" 
set style line 2 lt 2 lc rgb "green" 
plot 'integer_heap_benchmark_dary.dat' using 2:xtic(1) linecolor rgb "#5555ff" title col, \ 
     '' using 3:xtic(1) linecolor rgb "#f4dc42" title col, \ 
     '' using 4:xtic(1) title col 

,看起來像這樣:

My histogram

我想實現的是:

  1. 將每個x軸標籤向左移動一點,使其「指向」每個簇的中心,
  2. 更改x軸標籤的字體和大小。

我已經努力尋找自己的答案,但沒有任何成功。

回答

1

嘗試像

set tics font "Courier,24"

設置字體。

要居中的標籤,你可以試試

set xtics offset -3

你必須與值進行試驗。