[haskell-gnuplot] histogram
Henning Thielemann
lemming at henning-thielemann.de
Wed Jun 8 17:36:30 BST 2011
Hi Michael,
On Tue, 31 May 2011, Michael Litchard wrote:
> set terminal png transparent nocrop enhanced font arial 8 size 820,820
> set output 'histograms.2.png'
> set boxwidth 0.9 absolute
> set style fill solid 1.00 border -1
> set style histogram clustered gap 1 title offset character 0, 0, 0
> set style data histograms
> set xtics ("220" 0.00000, "320" 1.00000, "420" 2.00000, "520" 3.00000, "620" 4.00000, "720" 5.00000)
> set title "Comparison of how well software revisions perform on each hardware version"
> set yrange [ 0.00000 : 3000. ] noreverse nowriteback
> plot 'example.dat' using 2:xtic(1) ti col, '' u 3 ti col, '' u 4 ti col, '' u 5 ti col
Please get the latest version from the darcs repository and see, whether
this helps you:
darcs get http://code.haskell.org/gnuplot/
Your script helped me to see, what you need and let me re-engineer, what
gnuplot is actually doing. Gnuplot maintains a lot of internal state, that
is neither documented nor is it implied by the syntax. I need to know how
these state interact, since I want to have a functional style interface,
that is more composable in my opinion. I needed to find out, that 'ti',
'u', 'col' are abbreviations and what they mean, that 'set style data
histograms' can also be written in a stateless way in the plot command by
the 'with' clause, and that histograms can be mixed with other kinds of
plots. I had to find out, that the 'title offset' does not belong to
histograms and can be written in a separate line, and that the ":xtic(1)"
is equivalent to the 'set xtics' command, that is, they are redundant.
I hope I got it right now and put your example into Demo.
More information about the Gnuplot
mailing list