我有一个直方图,其中条形图太高,以至于它们与右上角的框重叠,显示有关每个条形图的信息(您称之为此框?)
我一直在改变画布的大小(高度),以便set size
更高,但我无法让它工作。然后我使用yrange
,但我不想指定更多范围来解决此问题。我想要它,以便内部画布更方形而不是矩形(更高的高度)而不改变范围。我该怎么做?
set term png
set output 'output.png'
red = "#FF0000";
green = "#00FF00";
blue = "#0000FF";
skyblue = "#87CEEB";
purple = "#4B0082";
set ylabel "Time (s)"
set xlabel "CPU"
set style data histogram
set style histogram cluster
set style fill solid
set boxwidth 0.9
set grid ytics
set xtics rotate
set title "Compiled with gcc/g++"
plot "processor.dat" using 2:xtic(1) title "-O1" linecolor rgb red, \
'' using 3 title "-O2" linecolor rgb blue, \
'' using 4 title "-O3" linecolor rgb green, \
'' using 5 title "-Os" linecolor rgb skyblue, \
'' using 6 title "-Ofast" linecolor rgb purple