如何使用 GNUPLOT 控制 X 轴上多条形图的范围

how to control the extent of multi-barplot on the X-axis with GNUPLOT

我正在尝试制作附图中的多条形图,但 X 轴上的计数必须从 44 开始到 127,而不是像现在这样从 1 到 84。 任何人都可以指出如何做到这一点吗?

set ylabel "Sec. Struct. Probability" offset -1
set yrange [0:1.0]
set xlabel "domain sequence"
set xrange [1:84]
set lmargin 15
set style data histogram
set style histogram cluster gap 1
set border 3
set boxwidth 0.9 absolute
set style fill solid 1.00 border
set xtics out
set xtics nomirror
set x2tics out
set x2tics nomirror
set x2tic scale 0
set ytics out
set ytics nomirror
set ytics font "Times-Roman,12"
set ytics offset 0.6, 0.05
set xtics font "Times-Roman,12"
set xtics offset -0.15,0.4
set xtics scale 3
set x2tics font "Courier,10"
set x2tics offset 0,graph -1.08
set datafile separator " "
set size ratio 0.5

plot "./SS_prediction.forGNUPLOT.dat" using 3:x2ticlabel(1) lc rgb "red" fs transparent solid 0.8 noborder title "Helix", \
"" using 4 lc rgb "blue" fs transparent solid 0.8 noborder title "Beta", \
"" using 5 lc rgb "green" fs transparent solid 0.8 noborder title "PPII"

我的数据文件是here

要在 x=44 处开始直方图,您可以使用 newhistogram 关键字,它允许您使用 at 44:

指定起始值
set xrange [44:127]
...
plot newhistogram at 44, \
    "./SS_prediction.forGNUPLOT.dat" using 3:x2ticlabel(1) ...