MathGroup Archive 2002

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

Search the Archive

Re: Plot inset?

  • To: mathgroup at
  • Subject: [mg33699] Re: Plot inset?
  • From: "Allan Hayes" <hay at>
  • Date: Mon, 8 Apr 2002 03:04:28 -0400 (EDT)
  • References: <a8m2tm$oad$>
  • Sender: owner-wri-mathgroup at

"Eric Dennis" <edennis at> wrote in message
news:a8m2tm$oad$1 at
> 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

Put your small plot in a Rectangle (it will be shown as large as possible
centered in the rectangle and preserving its aspect ratio; the rectangle is
itself transparent - you can see its outline by clicking on the picture)

g1= Plot[Cos[x],{x,0,2Pi},Axes->False,Frame->True];

g2=Plot[Sin[x],{x,0,2Pi}, Epilog->{Rectangle[{4,.2},{6,.9},g1]}];

Show[g2, Graphics[{Rectangle[{.2,-1},{2,-.1},g1]}]];


Allan Hayes
Mathematica Training and Consulting
Leicester UK
hay at
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

  • Prev by Date: Different Methods inside one package
  • Next by Date: Re: Functions in Mathematica
  • Previous by thread: Re: Plot inset?
  • Next by thread: Re: Plot inset?