A little problem with overlay of graphics

Hello everybody!
I try to use “Inset” to include small plots in a larger plot, and I have a problem of frontiers…
Here is an illustration from the documentation.
A function p1

p1 = Plot[{Sin[x], Sin[2 x]}, {x, 0, 2 \[Pi]}, ImageSize -> 200, 
  Frame -> True, Background -> LightYellow]

An overlay:

ParametricPlot[{Sin[x], Sin[2 x]}, {x, 0, 4 \[Pi]}, Frame -> True, 
 Prolog -> Inset[p1, {1, -.5}]]

Unfortunately, half of the first plot is lost! What can I do to really superimpose both windows, even if the yellow one go beyond the Lissajous curve region?

Regards,
Claude

Claude,

You put the inset in the wrong place. Adjust the x,y coordinates a bit. I also made the main plot bigger to get more room for the plot and adjusted the vertical to align the axis:

ParametricPlot[{Sin[x], Sin[2 x]}, {x, 0, 4 \[Pi]}, Frame -> True, 
 ImageSize -> Large, Prolog -> Inset[p1, {.56, -.02}]]

gives you

Regards,

Neil

Claude,

If you really wanted the inset hanging off the side, I suggest:

ParametricPlot[{Sin[x], Sin[2 x]}, {x, 0, 4 \[Pi]}, Frame -> True, 
 ImageSize -> Large, Prolog -> Inset[p1, {1, -.5}], 
 PlotRangePadding -> {{0.1, .7}, {0.1, 0.1}}]

to get:

Regards,

Neil

Thanks Neil, that’s what I needed!