我有以下代码生成堆积直方图:
#!/usr/bin/gnuplot
set term postscript eps enhanced color
#set output 'stacked-hist.eps'
set output ARG1.'.eps'
set title ARG1
set key top left outside horizontal autotitle columnhead
#set xtics rotate by 90 offset 0,-5 out nomirror
set autoscale x
set ytics out nomirror
set style fill solid border -1
set boxwidth 0.5 relative
set style data histograms
set style histogram rowstacked
set xlabel "Degree of node"
plot ARG1 using 2, '' using 3:xtic(1)
我想要的是(在输入数据中,每个X都没有很多数据点,所以我希望看到如下所示的直方图簇:
有没有办法在gnuplot中做到这一点? 这样的堆积直方图是否有正式名称? (分组堆积直方图)
答案 0 :(得分:0)