Path: csiph.com!aioe.org!.POSTED!not-for-mail From: Janis Papanagnou Newsgroups: comp.graphics.apps.gnuplot Subject: Overlaying two histograms Date: Wed, 27 Jan 2016 14:13:04 +0100 Organization: Aioe.org NNTP Server Lines: 68 Message-ID: NNTP-Posting-Host: lNb0zFRBsZKOIptd/PDXLg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 X-Enigmail-Draft-Status: N1110 X-Notice: Filtered by postfilter v. 0.8.2 X-Mozilla-News-Host: news://news.aioe.org:119 Xref: csiph.com comp.graphics.apps.gnuplot:3179 This is probably not that easy to answer; I'll try to explain my problem. In case that the ASCII-art below is not displayed appropriately I've added two links to the respective *.png files in the signature for clarification. I have currently two histogram data; the first are plain boxes like this: | _ | | _ | | | | | | | | _ | | | | | | | | | +-----+-----+-----+ ... + AAA BBB CCC and I use code like this to create it: set boxwidth 0.67 relative set style fill solid 1.0 ... plot 'data-1' using 2:xticlabels(1) title '' with boxes lt 0 This is exactly what I want for the first visible layer (at the bottom). Now I want to put data with a more detailled resulution on top. Each of the boxes above will be overlayed by a couple thin boxes. To create the respective second histogram layer I use code like this to create it: set style data histograms ... set boxwidth 0.67 relative set style fill solid 1.0 ... plot 'data-2' using 3:xtic(1) ti col, '' using 5 ti col, \ '' using 6 ti col, '' using 4 ti col, '' using 7 ti col This is not exactly what I want; as opposed to the first layer above the respective clusters of the histogram are grouped around the '+' tic-marks, like this: | | | | || | | | | || | | || | | ||| ||| ||| | +-----+-----+-----+ ... + AAA BBB CCC What I need to overlay the first histogram with the second one would be something like this instead: | | | | || | | | | || | | || | | ||| ||| ||| | +-----+-----+-----+ ... + AAA BBB CCC but it seems that the definition of "set style data histograms" results in that formatting, grouped around the tic-marks. Can this default be changed? The question is; how can I specify such clustered histogram data to be aligned appropriately? - A solution to this question is the precondition to overlay the two data representations so that the respective boxes and the x-tic labels match. Janis -- http://volatile.gridbug.de/averagehist.png http://volatile.gridbug.de/detailhist.png