MathGroup Archive 2006

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

Search the Archive

Re: Graph inside another graph


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