Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Dieter Britz Newsgroups: comp.graphics.apps.gnuplot Subject: Re: histograms Date: Wed, 25 May 2016 11:16:50 -0000 (UTC) Organization: A noiseless patient Spider Lines: 29 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 25 May 2016 11:16:50 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="361d4c895ec0fcd9a60ef0aa6588b2a3"; logging-data="18947"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9wNfFSxPbk8V+Pa+bsyhCVhkcGtXXwNk=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:b56ovycmVILV7qCO3RtnwUM8UJM= Xref: csiph.com comp.graphics.apps.gnuplot:3330 On Mon, 23 May 2016 18:48:05 +0200, Jörg Buchholz wrote: > On 23.05.2016 10:36, Dieter Britz wrote: >> I have a data file with two sets, that I want to make a histogram plot >> of (it's called 0.dat). >> >> 1 3.2521 2 6.2901 3 11.7867 4 32.9382 >> >> I looked up histograms in the manual and got this far in the script: >> >> set boxwidth 0.9 relative set style data histograms set style >> histogram cluster plot for (COL=2) '0.dat' using COL >> >> I get an error on the COL part. How should I do this? > > If you only want to plot the second (only one col) use the follwing: > > set style histogram rowstacked plot '0.dat' u 2 > > or use "with boxes" > > plot '0.dat' u 1:2 w boxes > > Jörg That did the trick, thanks! I didn't know about boxes. -- Dieter Britz