Complete fix for bug #12679 (https://gna.org/bugs/index.php?12679).
This bug was reported by Michael Funk (mifu att nmr dot mpibpc dot mpg dot de).
The last issue was that when there multiple graphs, one per spin, the spin labels for the graphs
were set to the x-axis values rather than the spin_id.