Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11815 > unrolled thread

Re: Epilog/Prolog and Show Question

Started byBob Hanlon <hanlonr357@gmail.com>
First post2012-09-19 08:58 +0000
Last post2012-09-19 08:58 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Epilog/Prolog and Show Question Bob Hanlon <hanlonr357@gmail.com> - 2012-09-19 08:58 +0000

#11815 — Re: Epilog/Prolog and Show Question

FromBob Hanlon <hanlonr357@gmail.com>
Date2012-09-19 08:58 +0000
SubjectRe: Epilog/Prolog and Show Question
Message-ID<k3c1f0$f07$1@smc.vnet.net>
Options given in Show will override options in the enclosed graphics.
Use both Epilog and Prolog together.

aa = Plot[Sin[x], {x, 0, 30},
   PlotStyle -> Lighter[Blue],
   Epilog -> Inset[Graphics[{Red, Circle[]}]]];
Show[aa,
 Prolog -> Inset[Graphics[Disk[{.4, .4}]],
   Scaled[{.2, .2}]]]

Plot[Sin[x], {x, 0, 30},
 PlotStyle -> Lighter[Blue],
 Epilog -> Inset[Graphics[{Red, Circle[]}]],
 Prolog -> Inset[Graphics[Disk[{.4, .4}]],
   Scaled[{.2, .2}]]]

bb = Plot[Sin[x], {x, 0, 30},
   PlotStyle -> Lighter[Blue],
   Prolog -> Inset[Graphics[{Red, Circle[]}]]];
Show[bb,
 Epilog -> Inset[Graphics[Disk[{.4, .4}]],
   Scaled[{.2, .2}]]]

Plot[Sin[x], {x, 0, 30},
 PlotStyle -> Lighter[Blue],
 Prolog -> Inset[Graphics[{Red, Circle[]}]],
 Epilog -> Inset[Graphics[Disk[{.4, .4}]],
   Scaled[{.2, .2}]]]


Bob Hanlon


On Tue, Sep 18, 2012 at 3:40 AM, Dan O'Brien <danobrie@gmail.com> wrote:
> Can someone explain why Show drops the original Inset Circle[]?  And how
> I could make it not forget?
>
> aa = Plot[Sin[x], {x, 0, 30}, Epilog -> Inset[Graphics[Circle[]]]]
> Show[aa, Epilog -> Inset[Graphics[Disk[{.4, .4}]], Scaled[{.2, .2}]]]
>
> bb = Plot[Sin[x], {x, 0, 30}, Epilog -> Inset[Graphics[Circle[]]]]
> Show[bb, Epilog -> Inset[Graphics[Disk[{.4, .4}]], Scaled[{.2, .2}]]]
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web