[haskell-gnuplot] Please help with xtic on histogram!
Henning Thielemann
lemming at henning-thielemann.de
Sun Jun 12 18:42:57 BST 2011
On Sun, 12 Jun 2011, Dmitri O.Kondratiev wrote:
> Hello,
> I am trying to read xtic labels from data file for histogram chart.
> On X axis I need labels, from the last, 5-th column of my data file
> (see bellow).
> These labels have the form '[x1,x2..xN] such as [1,2,3], etc.
> I am trying to use something like:
> plot "t1dat.txt" u 2:xtic(5) t "Best Fit", "" u 3 t "In Class", "" u 4 t "Other"
> which does not show the labels.
Are you sure, that gnuplot can handle the hyphens? Maybe gnuplot expects
quotation marks for the labels in the 5th column.
Anyway, if you use my gnuplot package, then the xtics are set via the 'set
xtics' command. Please see the Demo.hs file for how it works.
More information about the Gnuplot
mailing list