Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14167 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2013-04-13 06:02 +0000 |
| Last post | 2013-04-13 06:02 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: "Overlapped" and "Stacked" layout in Histogram ploting Bob Hanlon <hanlonr357@gmail.com> - 2013-04-13 06:02 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2013-04-13 06:02 +0000 |
| Subject | Re: "Overlapped" and "Stacked" layout in Histogram ploting |
| Message-ID | <kkasd7$ris$1@smc.vnet.net> |
"Overlapped" plots two histograms with the same scale so that one would
"hide" portions of the other; the color differences show which one is
larger. Note that the colors for the diference change depending on which
histogram is in front.
"Stacked" plots the sum of the entries so that no data is hidden. Note the
difference in scale on the vertical axis compared to the "Overlapped" plots.
data1 = RandomVariate[NormalDistribution[0, 1], 500];
data2 = RandomVariate[NormalDistribution[0, 1], 500];
Table[Histogram[{data1, data2}, PlotLabel -> l,
ChartLayout -> l], {l, {"Overlapped", "Stacked"}}]
Table[Histogram[{data2, data1}, PlotLabel -> l,
ChartLayout -> l], {l, {"Overlapped", "Stacked"}}]
Bob Hanlon
On Fri, Apr 12, 2013 at 2:19 AM, Joug Raw <jougraw@gmail.com> wrote:
> I have a question regarding to the layout of the Histogram ploting.
>
> data1 = RandomVariate[NormalDistribution[0, 1], 500];
> data2 = RandomVariate[NormalDistribution[0, 1], 500];
>
> Table[Histogram[{data1, data2}, PlotLabel -> l,
> ChartLayout -> l], {l, {"Overlapped", "Stacked"}}]
>
> The output looks like:
> [image: Inline image 1]
> [image: Inline image 2]
>
> I do not quiet understand what the meaning of "stacked" and "overlapped".
>
> What was those light purple part that in between of tow bars in
> "Overlapped" mode?
>
> For "stacked" mode, if I switch the order of the data, label and the color,
> I expect to see the form of the histogram also changed. But the histogram
> actually do not change. This is strange, because it means in one way one
> data is larger then the other but in the other way it is smaller. The
> consequence is not in consistence itself. Could any one explain the exact
> meaning of Stacked and Overlapped mode?
>
>
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web