Skip to main content
10 events
when toggle format what by license comment
May 23, 2017 at 12:18 comment added kjo Your fix is very elegant I think, and it works beautifully. A couple of thoughts. Since the offset added by the hspec function (hfn) is so small, one could omit it from the second histogram (h2). In fact, if one has some time to kill, one could even set hfn = offset + #2 &, for some arbitrary positive integer offset, and then change the last subexpression in hline from Sequence[{x, Y}, {X, Y}] to Sequence[{x, Y - offset}, {X, Y - offset}]. (A probably useless embellishment.)
May 21, 2017 at 6:04 history edited Mr.Wizard CC BY-SA 3.0
added 927 characters in body
May 21, 2017 at 6:03 comment added Mr.Wizard @kjo I think I found a relatively simple fix; please take a look and test it for me.
May 18, 2017 at 18:01 comment added kjo There's a problem with the histogram outlining scheme at the end (last plot), when the histogram contains empty bins (not an uncommon situation, especially towards the tails). To elicit this condition, just add a narrow bin width specification (e.g. {0.1}) as a second argument to the Histogram expressions.
Feb 16, 2015 at 19:06 history edited Mr.Wizard CC BY-SA 3.0
update replacement to also work in Mathematica 10
Jun 5, 2012 at 7:46 comment added jmlopez I feel that it is a little absurd how there is tons of examples of how to use Histogram and yet there is no option to do what you just did in the update. All it really is is a line plot connecting points with the fill axis property. Anyway, thank you Mr. Wizard.
Jun 5, 2012 at 7:03 history edited Mr.Wizard CC BY-SA 3.0
added 700 characters in body
Jun 4, 2012 at 22:47 comment added jmlopez Is there a way to get rid of the middle lines? And get something like this on the second example. I like how they just set the Apperance to Transparent and its done.
Feb 25, 2012 at 14:27 history edited Mr.Wizard CC BY-SA 3.0
added 323 characters in body
Feb 24, 2012 at 22:06 history answered Mr.Wizard CC BY-SA 3.0