Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: histograms Date: Mon, 23 May 2016 17:36:43 +0200 Organization: solani.org Lines: 25 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1464017811 14641 eJwFwYEBwCAIA7CXlAq15wCO/09Y4ogdzRMex8dHkEQ4lNy1Ltj8snW4YHntkf1qbg5MFfgBARoQjg== (23 May 2016 15:36:51 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Mon, 23 May 2016 15:36:51 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 X-User-ID: eJwFwQkBACAIA8BKIownDirrH8E7qIvfMIcbCM6tWUGgG4zKODtNX0spbERxqLGS+mQnnB8dORC3 In-Reply-To: Cancel-Lock: sha1:HoLkXXCBNMsPqKy6U/U+/6AIm4w= X-NNTP-Posting-Host: eJwFwYEBwCAIA7CXVqGtnONk/H/CEoag6xSVHI5IaF/uUKFdg+Rqf4/ftmnkyuN0H9wo6gf3eA/M Xref: csiph.com comp.graphics.apps.gnuplot:3328 Am 23.05.2016 um 14:28 schrieb Dieter Britz: > Yes, but it's a bit cryptic to me. I have now got a histogram, > with your help, using this: > > set boxwidth 0.9 relative > set style data histograms > set style histogram cluster > plot for [COL=1:2] '0.dat' using COL #, '1.dat' using COL > > and having eliminated the count column. > Now I want two of them, one using 0.dat (the previous first set) > as is, open bars, plus the second set 1.dat, alongside that with > filled bars. How do I do that? Still i do not see what you want the "for" iteration for. Have you read "help plot for"? I thought your first column only contains the sequential numbers of the histogram slots (which gnuplot does not need anyway, but surely they are not histogram data)? Anyway, your "set" commands plus plot "0.dat" us col 2, "1.dat" using col 2 does it. What is the problem?