Re: [Q] Plot in a Plot
- Subject: [mg3121] Re: [Q] Plot in a Plot
- From: wagner at bullwinkle.cs.Colorado.EDU (Dave Wagner)
- Date: 3 Feb 1996 00:57:17 -0600
- Approved: usenet@wri.com
- Distribution: local
- Newsgroups: wri.mathgroup
- Organization: University of Colorado, Boulder
- Sender: daemon at wri.com
In article <4en6tk$lll at dragonfly.wri.com>,
<David A.Johnson at news.acns.nwu.edu> 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.
Rectangle can be used to embed one graphics object in another.
Try something like this:
Show[mainplot, Epilog->Rectangle[{x1,y1},{x2,y2},subplot]]
where {x1,y1} are the coordinates of the lower-left hand corner
of the rectagle, and {x2,y2} are the coords of the upper right-hand corner,
and mainplot and subplot are graphics objects. The coordinates are
expressed in the coordinate system of mainplot.
Dave Wagner
Principia Consulting
(303) 786-8371
dbwagner at princon.com
http://www.princon.com/princon