Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11815
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Epilog/Prolog and Show Question |
| Date | 2012-09-19 08:58 +0000 |
| Message-ID | <k3c1f0$f07$1@smc.vnet.net> (permalink) |
| References | <20120918074039.1EEE66847@smc.vnet.net> |
| Organization | Time-Warner Telecom |
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}]]]
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Epilog/Prolog and Show Question Bob Hanlon <hanlonr357@gmail.com> - 2012-09-19 08:58 +0000
csiph-web