MathGroup Archive 2002

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

Search the Archive

Re: How to display one plot as an inset in another plot?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg35344] Re: How to display one plot as an inset in another plot?
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Tue, 9 Jul 2002 06:47:56 -0400 (EDT)
  • References: <agbg4v$jg1$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Rectangle's the thing:

    sq= Plot[x^2,{x,0, 1}]
    sn = Plot[Sin[x],{x,0, 2Pi}]


    Show[sq,Graphics[{Rectangle[{.1,.4},{.8,1},sn]}]]

Alternatively,
    Plot[x^2, {x,0,1},
      Epilog \[Rule] Rectangle[{.1,.4},{.8,1},Plot[Sin[x],{x,0, 2Pi}]]]

You can suppress unwanted displays with DisplayFunction -> Identity.

--
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


"AES" <siegman at stanford.edu> wrote in message
news:agbg4v$jg1$1 at smc.vnet.net...
> How to display one (complete) plot as an inset (maybe scaled, certainly
> offset) within (or on top of) another plot?
>
> Kind of a
>
>     Show[ plot1, {Scaled[0.5], Offset[{2,2}], plot2} ]
>
> capability.
>




  • Prev by Date: New Options in NDSolve ?
  • Next by Date: Weird error which shouldn't be an error
  • Previous by thread: Re: How to display one plot as an inset in another plot?
  • Next by thread: Re: How to display one plot as an inset in another plot?