【发布时间】:2025-12-02 08:25:01
【问题描述】:
我有以下代码生成堆叠直方图:
#!/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 中做到这一点? 这种堆叠直方图有正式名称吗? (分组堆叠直方图)
【问题讨论】:
-
您能提供更多信息吗?目前尚不清楚如何解释您的示例图,因此不清楚如何重现它。 200
-
200 到 1000 之间可能有一些数据点,但我想忽略它们。在 gnuplot 中可以吗?
标签: gnuplot