Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Histograms series overlap Date: Wed, 16 Mar 2016 17:02:08 +0100 Lines: 26 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.dfncis.de DhjNd52d5TTi4FbiU7yKjA2Hb8HzYkKbgSfwB4scT2XCvWNa3cBeKaZRNi Cancel-Lock: sha1:oTiNwsQVmd5XszKHQpk0KMmMXPk= User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: Xref: csiph.com comp.graphics.apps.gnuplot:3261 Am 16.03.2016 um 16:21 schrieb Joe: > I have following data files (eg. two files one for each serie). > I'm referring to hourly measure records from two stations. [...] > For each hour I want a "box" with the low part filled with > color of station that reports lower value. And upper part > filled with colour of station that reports higher value. I'm afraid combining data from two sets like that is going to be impossible with the data residing in two separate input files. With the data in a 3-column file, something like plot 'file.dat' u 1:(max($2,$3)):(1+($2>$3)) w boxes lc var, \ '' u 1:(min($2,$3)):(1+($3>=$2)) w boxes lc var might do it. I therefore suggest you use external tools like the classic Unix utilities 'join' and 'paste' to turn your two files into one, before attempting to plot this. > Can I obtain a plot like I've explained above? Let's just say that putting the two data sets besides each other (i.e. using slimmer boxes, with a bit of horizontal displacement) would be a whole lot easier than trying to force gnuplot to do it your way.