Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3330
| From | Dieter Britz <dieterhansbritz@gmail.com> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: histograms |
| Date | 2016-05-25 11:16 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <ni41j2$ig3$1@dont-email.me> (permalink) |
| References | <nhufef$24h$1@dont-email.me> <nhvc1c$cp9$1@dont-email.me> |
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
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Find similar
histograms Dieter Britz <dieterhansbritz@gmail.com> - 2016-05-23 08:36 +0000
Re: histograms Karl Ratzsch <mail.kfr@gmx.net> - 2016-05-23 11:10 +0200
Re: histograms Dieter Britz <dieterhansbritz@gmail.com> - 2016-05-23 12:28 +0000
Re: histograms Karl Ratzsch <mail.kfr@gmx.net> - 2016-05-23 17:36 +0200
Re: histograms Jörg Buchholz <bookwood4news@freenet.de> - 2016-05-23 18:48 +0200
Re: histograms Dieter Britz <dieterhansbritz@gmail.com> - 2016-05-25 11:16 +0000
csiph-web