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


Groups > comp.soft-sys.math.mathematica > #11819

Re: Epilog/Prolog and Show Question

From Roland Franzius <roland.franzius@uos.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Epilog/Prolog and Show Question
Date 2012-09-19 09:04 +0000
Message-ID <k3c1q7$f2s$1@smc.vnet.net> (permalink)
References <k398tj$9ol$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


Am 18.09.2012 09:46, schrieb Dan O'Brien:
> 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}]]]
>


You have to update the Epilog option of Graphics aa.

If more than one optional replacement rule with the same option name but 
different values are applied, only the last one is used.

Graphics[
aa /.
   {HoldPattern[Epilog -> zz_] :>
    (Epilog -> {zz, Inset[Graphics[Disk[{.4, .4}]], Scaled[{.2, .2}]]})}
]

-- 

Roland Franzius

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Epilog/Prolog and Show Question Dan O'Brien <danobrie@gmail.com> - 2012-09-18 07:46 +0000
  Re: Epilog/Prolog and Show Question Roland Franzius <roland.franzius@uos.de> - 2012-09-19 09:04 +0000

csiph-web