The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: "Overlapped" and "Stacked" layout in Histogram ploting
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 22
Registered: 5/30/12
"Overlapped" and "Stacked" layout in Histogram ploting
Posted: Apr 12, 2013 2:16 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.