MathGroup Archive 2006

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

Search the Archive

Re: Graph inside another graph

  • To: mathgroup at smc.vnet.net
  • Subject: [mg68942] Re: Graph inside another graph
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Fri, 25 Aug 2006 05:34:53 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <echef8$ope$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

maruth at gmail.com wrote:
> Hello,
> I am generating graphs in mathematica 5.0 that I export to eps for use
> in latex.
> I have two graphics objects each from MultipleListPlot[.], However I
> cannot seem to find a way to place a graph inside another graph (the
> inside graph
> being smaller and in an upper corner having it's own axis but within
> the frame of the larger graph).  If anyone knows an easy method to do
> this, or any method at all I would appreciate it.

Use Rectangle as in

Block[{$DisplayFunction = Identity},
g1 = Plot[Sin[x], {x, 0, 2*Pi}]; g2 = Plot[Cos[x], {x, 0, Pi}]; ]; 
Show[Graphics[{Rectangle[{0, 0}, {5, 1}, g1], Rectangle[{3, 0}, {4, 2}, 
g2]}]];

HTH,
Jean-Marc


  • Prev by Date: RE: Graph inside another graph
  • Next by Date: RE: Graph inside another graph
  • Previous by thread: RE: Graph inside another graph
  • Next by thread: RE: Graph inside another graph