Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Re: Plot inset?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg33716] [mg33716] Re: Plot inset?
  • From: Tim Brophy <timbrophy at eircom.net>
  • Date: Tue, 9 Apr 2002 01:03:17 -0400 (EDT)
  • References: <a8m2tm$oad$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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?