Message Boards Message Boards

1
|
4208 Views
|
1 Reply
|
4 Total Likes
View groups...
Share
Share this post:

Does Epilog work with Histogram?

Posted 12 years ago
Hi,
I can make a plot with an inset by using Epilog in the following way:
insetPlot = Plot[Cos[x], {x, -Pi, Pi}, Frame -> True, ImageSize -> 100];
Plot[Sin[x], {x, 0, 2 Pi}, ImageSize -> 300, Frame -> True, Epilog -> Inset[insetPlot, {4.5, .5}]]

I tried the analogous thing with Histogram (Eplilog is an opt), but the inset doesn't show up:
histData = RandomVariate[NormalDistribution[0, 1], 300];
Histogram[histData, Epilog -> Inset[insetPlot, {4.5, .5}]]

Any ideas how to get this working?

Thanks,
Porscha 
POSTED BY: Porscha McRobbie
insetPlot = Plot[Cos[x], {x, -Pi, Pi}, Frame -> True, ImageSize -> 100];
histData = RandomVariate[NormalDistribution[0, 1], 300];
Histogram[histData, Epilog -> Inset[insetPlot, ImageScaled[{.8, .8}]]]
gives

POSTED BY: Rolf Mertig
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract