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


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

Re: How Can I Make Plot Options Conditional?

From Panayiotis Georgiou <ps.georgiou@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How Can I Make Plot Options Conditional?
Date 2011-09-12 08:31 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j4kg0c$kiv$1@smc.vnet.net> (permalink)
References <j0riot$41o$1@smc.vnet.net>

Show all headers | View raw


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=

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


Thread

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

csiph-web