Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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 ?

share|improve this question
    
Thanks, my search wasn't thorough enough I guess. –  Nick Jan 6 at 17:59
add comment

marked as duplicate by bobthechemist, Sjoerd C. de Vries, rm -rf Jan 6 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.

1 Answer

up vote 4 down vote accepted

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

share|improve this answer
add comment

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