Skip to main content

Show

Wolfram Kernel
Execution environment
caution

Only partially supported wljs-graphics-d3 for now

Show[g1_Graphics, g2_Graphics] _Graphics

overlay two or more Graphics objects

Example

Plot a histogram and a 2D graph

data = RandomVariate[GammaDistribution[4, 12.5], 10^4];
hist = Histogram[data, Automatic, "ProbabilityDensity"];
pl = Plot[PDF[GammaDistribution[4, 12.5], x], {x, 0, 200}];

Show them overlayed

Show[hist, pl]