Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11787 > unrolled thread
| Started by | Dan O'Brien <danobrie@gmail.com> |
|---|---|
| First post | 2012-09-18 07:46 +0000 |
| Last post | 2012-09-19 09:04 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
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
| From | Dan O'Brien <danobrie@gmail.com> |
|---|---|
| Date | 2012-09-18 07:46 +0000 |
| Subject | Epilog/Prolog and Show Question |
| Message-ID | <k398tj$9ol$1@smc.vnet.net> |
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] | [next] | [standalone]
| From | Roland Franzius <roland.franzius@uos.de> |
|---|---|
| Date | 2012-09-19 09:04 +0000 |
| Message-ID | <k3c1q7$f2s$1@smc.vnet.net> |
| In reply to | #11787 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web