Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4025 > unrolled thread
| Started by | Gregory Lypny <gregory.lypny@videotron.ca> |
|---|---|
| First post | 2011-07-28 11:56 +0000 |
| Last post | 2011-09-12 08:31 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
How Can I Make Plot Options Conditional? Gregory Lypny <gregory.lypny@videotron.ca> - 2011-07-28 11:56 +0000
Re: How Can I Make Plot Options Conditional? Panayiotis Georgiou <ps.georgiou@gmail.com> - 2011-09-12 08:31 +0000
| From | Gregory Lypny <gregory.lypny@videotron.ca> |
|---|---|
| Date | 2011-07-28 11:56 +0000 |
| Subject | How Can I Make Plot Options Conditional? |
| Message-ID | <j0riot$41o$1@smc.vnet.net> |
Hello everyone,
Is there a preferred way to make plot options conditional? For Epilog
points, for example, I've been using an IF statement within the Epilog
list to determine whether the point size should be set to zero and
therefore make the point invisible.
Epilog -> {If[x >= xMin, PointSize[.02], PointSize[0]], Orange, Point[ptX]},
Gregory=
[toc] | [next] | [standalone]
| From | Panayiotis Georgiou <ps.georgiou@gmail.com> |
|---|---|
| Date | 2011-09-12 08:31 +0000 |
| Message-ID | <j4kg0c$kiv$1@smc.vnet.net> |
| In reply to | #4025 |
Hello,
I had the same problem. I looked a lot on the internet but couldn't
find anything.
Here is how I manage to overcome this problem:
Epilog -> {If[ x > xMin, PointSize[.02], { }], Orange, Point[ptX]},
Basically you return an empty option by using '{}' when the condition
is false.
I hope this helps.
Panayiotis.
On 28 =C9=EF=FD=EB, 12:56, Gregory Lypny <gregory.ly...@videotron.ca> wrote:
> Hello everyone,
>
> Is there a preferred way to make plot options conditional? For Epilog
> points, for example, I've been using an IF statement within the Epilog
> list to determine whether the point size should be set to zero and
> therefore make the point invisible.
>
> Epilog -> {If[x >= xMin, PointSize[.02], PointSize[0]], Orange, Point[ptX]},
>
> Gregory=
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web