Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

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

Search the Archive

Re: [Q] Plot in a Plot

  • To: mathgroup at
  • Subject: [mg3099] Re: [Q] Plot in a Plot
  • From: ianc (Ian Collier)
  • Date: Thu, 1 Feb 1996 03:21:32 -0500
  • Organization: Wolfram Research, Inc.
  • Sender: owner-wri-mathgroup at

In article <4en6tk$lll at>, David
A.Johnson at wrote:

> I need a little help.
> I want to display a ListPlot that is framed and in the upper right
corner  of this plot I want to display a shrunken ListPlot, ie a plot
within a plot.
> In reality the shrunken ListPlot is the original data and the framed
primary ListPlot is the magnitude spectrum of the original data.  I am not
concerned if the shrunken plot overlay's over data in the larger framed
> Does anyone have any suggestions on how this can be accomplished using Mma?
> Thank's in advance,
> David

You can do this using the Rectangle graphics primitives
to contain the plots. Here is an example taken from
section 2.9.7 of the Mathematica book.

    p3 = Plot3D[Sin[x] Exp[y], {x, -5, 5}, {y, -2, 2}]

    Show[Graphics[ {Rectangle[{0, 0}, {1, 1}, p3], 
            Rectangle[{0.8, 0.8}, {1.2, 1.4}, p3]} ]]

I hope this helps.


Ian Collier
Technical Sales Support
Wolfram Research, Inc.
tel:(217) 398-0700     fax:(217) 398-0747      ianc at
Wolfram Research Home Page:   


  • Prev by Date: Re: PowerExpand[Angstrom/Meter]
  • Next by Date: Re: [Q] Plot in a Plot
  • Previous by thread: Re: PowerExpand[Angstrom/Meter]
  • Next by thread: Re: [Q] Plot in a Plot