Re: A plot inside another plot
- To: mathgroup at smc.vnet.net
- Subject: [mg70514] Re: A plot inside another plot
- From: Peter Pein <petsie at dordos.net>
- Date: Wed, 18 Oct 2006 04:17:40 -0400 (EDT)
- References: <eh210c$2om$1@smc.vnet.net>
Henning Heiberg-Andersen schrieb:
> Hi,
>
> Is it possible to create a plot, *at an arbitrary position, *inside another
> plot?
>
> I have the 5.0 version.
>
> Best regards,
> Henning Heiberg-Andersen
>
>
Hi Henning,
you can use Rectangle[] to do this:
Plot[Sin[x], {x, -Pi, Pi},
Epilog -> {Rectangle[Scaled[{1/7, 4/7}], Scaled[{1/2, 1}],
Plot[Cos[x], {x, 0, Pi/2}, DisplayFunction -> Identity,
Ticks -> {{0, Pi/2}, {0, 0.5, 1}}]]}]
Peter