Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10415
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: SmoothHistogram and Legends |
| Date | 2012-06-10 06:15 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jr1e2p$757$1@smc.vnet.net> (permalink) |
| References | <201206090707.DAA28360@smc.vnet.net> |
You can roll your own:
SmoothHistogram[
Table[Tooltip[
RandomVariate[
ExponentialDistribution[a], 500], a],
{a, {0.1, 0.3, 0.5}}],
Frame -> True, Axes -> False,
PlotRange -> {{-2, 30}, {0, .4}},
PlotStyle -> {Red, Blue, Green},
Epilog -> {
Table[{{Red, Blue, Green}[[n]],
Line[{{20, .15 + .04 n},
{22, .15 + .04 n}}],
Black,
Text[{0.1, .3, .5}[[n]],
{23.5, .15 + .04 n}]},
{n, 3}]}]
Bob Hanlon
On Sat, Jun 9, 2012 at 3:07 AM, <dangoogle@warp-7.com> wrote:
> I am trying to put a legend on a SmoothHistogram that I generate
> (Mathematica 8), using an array of 6 data sets. I can not find a
> single method for making a legend on a SmoothHistogram. All of the
> methods that work with other charts and graphics don't seem to work
> with a SmoothHistogram. Has anyone accomplished this?
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: SmoothHistogram and Legends Bob Hanlon <hanlonr357@gmail.com> - 2012-06-10 06:15 +0000
csiph-web