MathGroup Archive 2002

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

Search the Archive

Re: Plot inset?


On 4/6/02 8:00 AM, in article a8m2tm$oad$1 at smc.vnet.net, "Eric Dennis"
<edennis at princeton.edu> wrote:

> Is it possible to display a plot as a small inset
> in a larger plot? Couldn't find any reference to
> this in the help browser, but it seems like
> something that should be doable. Maybe there's
> just some kind of "superpose graphics" option(?).
> 
> Thanks,
> Eric
> 
Use the "Rectangle" function as follows:

p1 = Plot[Sin[x], {x, 0, 2\[Pi]}]

p2 = Plot[Sin[x], {x, 0, 1}, Ticks -> None]

Show[Graphics[{Rectangle[{0, 0}, {1, 1}, p1], Rectangle[{0.8, 0.8}, {1, 1},
p2]}]]

This will do it for you.

Tim Brophy


  • Prev by Date: Re: Plot inset?
  • Next by Date: RE: combination of two ContourPlots - impossible?
  • Previous by thread: Re: Plot inset?
  • Next by thread: RE: Plot inset?