There is no way to take histogram tics labels from a data file in GNUPlot.
A new script is added to generate the histogram tics labels from the data,
suitable to be included directly in a GNUPlot script.
.PHONY: plot
plot: $(graphs)
+.PRECIOUS: $(PLOT_DIR)/%.tics
+$(PLOT_DIR)/%.tics: $(STAT_DIR)/%.h.csv tics.awk
+ $(P_AWK) awk -F, -f $(lastword $^) $< > $@
+
$(PLOT_DIR)/%.c.eps: $(STAT_DIR)/%.c.csv plot-c.gpi
$(P_PLOT) sed "s|@@PRG@@|$(*F)|g; s|@@COL@@|$(VERS)|g; \
s|@@IN@@|$<|g; s|@@OUT@@|$@|g" $(lastword $^) \
--- /dev/null
+#!/usr/bin/env awk -F, -f
+
+BEGIN {
+ ORS = "" # don't use a \n after each print
+ print "'' 0"
+}
+
+NR > 1 { # skip the input CVS header
+ print ", '" $1 "' " (NR-2)
+}
+