MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: A plot inside another plot


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


  • Prev by Date: Unable to print notebook
  • Next by Date: Re: A plot inside another plot
  • Previous by thread: Re: A plot inside another plot
  • Next by thread: Re: A plot inside another plot