Gnuplot直方图xtics和条间距
Gnuplot直方图xtics和条间距,gnuplot,Gnuplot,如您所见,XTIC是从图像中剪切出来的,它们太近了。如何改进?要增加xtic标签之间的间距,必须增加终端大小,如 set style data histogram set style histogram rowstacked set style fill solid border set terminal png set output 'permfail.png' set boxwidth 0.5 relative # histogram bar width set title "Ana
如您所见,XTIC是从图像中剪切出来的,它们太近了。如何改进?要增加xtic标签之间的间距,必须增加终端大小,如
set style data histogram
set style histogram rowstacked
set style fill solid border
set terminal png
set output 'permfail.png'
set boxwidth 0.5 relative # histogram bar width
set title "Analysis of dangerus permissions"
set ylabel "Apps percentage %"
set yrange [0 : 100]
set xtics noenhanced # no escaping for strings
set xtics rotate by 40 right
set grid ytics
plot for [COL=2:2] 'permfail.dat' using COL:xticlabels(1) title columnheader fs pattern 2 lc rgb "black"
Gnuplot无法获取字符串的确切长度,因为它不知道终端字体呈现的内部内容。因此,它只能估计一个近似的字符串长度。特别是对于像您这样的长标签,这可能会出错。在这种情况下,您必须明确设置适当的底部边距(调整数字以满足您的需要)
或
我还设置了
set lmargin 10
set terminal pngcairo size 1000,500
set bmargin 20
set bmargin at screen 0.3