I'd like to put a figure of a 2D-plot into a larger 2D-plot (into some white-space), like in the example below:

The plot inside plot example

I don't precesely know how It's done, could anyone help me with this one? Is it with the command Epilog somehow ?

  • $\begingroup$ Thanks, my search wasn't thorough enough I guess. $\endgroup$ – Nick Jan 6 '14 at 17:59

Take a look at Inset:

Plot[Exp[-x], {x, 0, 10}, PlotRange -> All, 
 Epilog -> Inset[Plot[Sin[x], {x, 0, 2 π}], Scaled[{.7, .5}]]]

inset plot in plot


Not the answer you're looking for? Browse other questions tagged or ask your own question.