This question already has an answer here:

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 ?


marked as duplicate by bobthechemist, Sjoerd C. de Vries, rm -rf Jan 6 '14 at 19:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\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.