MathGroup Archive 2006

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

Search the Archive

RE: Graph inside another graph


You can do it with Rectangle[]. 
Example:

p1 = Plot[Sin[x], {x, 0, 2Pi}];
p2 = Plot[Cos[x], {x, 0, 2Pi}];
p12 = Show[p1, Graphics[{Rectangle[{3.5, 0.4}, {5.5, 1.2}, p2]}]]

Bye!
Jose 

-----Mensaje original-----
De: maruth at gmail.com [mailto:maruth at gmail.com] 
Enviado el: Miércoles, 23 de Agosto de 2006 06:16 a.m.
Para: mathgroup at smc.vnet.net
Asunto: [mg68922] Graph inside another graph

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.


  • 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