Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3179
| From | Janis Papanagnou <janis_papanagnou@hotmail.com> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Overlaying two histograms |
| Date | 2016-01-27 14:13 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <n8afov$qpq$1@gioia.aioe.org> (permalink) |
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
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar
Overlaying two histograms Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-01-27 14:13 +0100
Re: Overlaying two histograms Jörg Buchholz <bookwood4news@freenet.de> - 2016-01-27 18:44 +0100
Re: Overlaying two histograms Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-01-30 05:29 +0100
Re: Overlaying two histograms Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-01-30 09:04 +0100
Re: Overlaying two histograms Jörg Buchholz <bookwood4new@freenet.de> - 2016-01-30 10:01 +0100
Re: Overlaying two histograms Janis Papanagnou <janis_papanagnou@hotmail.com> - 2016-01-30 12:31 +0100
Re: Overlaying two histograms Jörg Buchholz <bookwood4news@freenet.de> - 2016-01-30 20:50 +0100
Re: Overlaying two histograms Karl Ratzsch <mail.kfr@gmx.net> - 2016-01-31 20:07 +0100
csiph-web