MathGroup Archive 2002

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

Search the Archive

Re: Plot inset?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg33699] Re: Plot inset?
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Mon, 8 Apr 2002 03:04:28 -0400 (EDT)
  • References: <a8m2tm$oad$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"Eric Dennis" <edennis at princeton.edu> wrote in message
news:a8m2tm$oad$1 at smc.vnet.net...
> 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
>

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

---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
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?