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


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

How Can I Make Plot Options Conditional?

Started byGregory Lypny <gregory.lypny@videotron.ca>
First post2011-07-28 11:56 +0000
Last post2011-09-12 08:31 +0000
Articles 2 — 2 participants

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


Contents

  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

#4025 — How Can I Make Plot Options Conditional?

FromGregory Lypny <gregory.lypny@videotron.ca>
Date2011-07-28 11:56 +0000
SubjectHow 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]


#4894

FromPanayiotis Georgiou <ps.georgiou@gmail.com>
Date2011-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