gnuplot直方图条为空

gnuplot直方图条为空,gnuplot,Gnuplot,我正在尝试一个非常简单的gnuplot图。 数据是 和图形代码: set style fill solid border 0 set boxwidth 1.5 set style histogram clustered set style data histograms plot "PDR.txt" using 2:xtic(1) lt rgb "#406090",\"" 0" using 3 lt rgb "#40FF0 问题是图形产生的空间太多,在中间,特别是左边和右边。我怎样才能减少这些

我正在尝试一个非常简单的gnuplot图。 数据是

和图形代码:

set style fill solid border 0
set boxwidth 1.5
set style histogram clustered
set style data histograms
plot "PDR.txt" using 2:xtic(1) lt rgb "#406090",\"" 0" using 3 lt rgb "#40FF0
问题是图形产生的空间太多,在中间,特别是左边和右边。我怎样才能减少这些?

您应该将xrange设置为所需的长度,例如,
设置xrange[-0.25:1.5]
在我的电脑上看起来不错

它的可能复制只解决了部分问题(左边和右边的空格)。我认为真正的交易是消除<代码>:-)为此,您可以使用
set Smargin N
设置减少绘图的magins,其中S表示侧面的l、r、t、b(左、右、上、下),N表示0到1之间的数字
set style fill solid border 0
set boxwidth 1.5
set style histogram clustered
set style data histograms
plot "PDR.txt" using 2:xtic(1) lt rgb "#406090",\"" 0" using 3 lt rgb "#40FF0