Re: help with contourplot 3d

• To: mathgroup at smc.vnet.net
• Subject: [mg43484] Re: help with contourplot 3d
• From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
• Date: Thu, 18 Sep 2003 05:38:46 -0400 (EDT)
• Organization: Universitaet Leipzig
• References: <bk9kks\$4l\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Hi,

you can mak a new function with

saveFunction[x_,y_,z_]:=Module[{res},res=yourFunction[x,y,z];
If[!NumericQ[res],0.0,res]]

And you should use MathGL3d's MVContourPlot3D[]
that is much faster tha Graphics`ContourPlot3D[]

Regards
Jens

Michael Alfaro wrote:
>
> Hi,
>
> I am trying to plot a contour that is a function of 3 variables, x, y,
> and z.  I am plotting the function over a biologically interesting
> range of values using ContourPlot3d.  The problem is that the function
> does not give real values over some parts of the space near an edge.
> When I try to plot, mathematica
> shows these lines in blue
> CompiledFunction::"cfn": "Numerical error encountered at instruction \
> \!\(52\); proceeding with uncompiled evaluation."
>
> General::"stop": "Further output of \!\(CompiledFunction :: \"cfn\"\)
> will be \
> suppressed during this calculation."
>
> and
>
> ContourPlot3D::"gval": "Function value \!\(\(\(-0.6727485829490804`\)\)
> - \
> \(\(0.22711205859697875`\\ \[ImaginaryI]\)\)\) at grid point x =
> \!\(0.19`\), \
> y = \!\(0.29`\), z = \!\(0.28`\) is not a real number."
>
> The plot that mathematica produces looks good except for one edge which
> is jagged!  As I tell mathematica to plot more points, the size of the
> jags diminishes.  However I am reaching the practical limit of plot
> points (25) in terms of time and screen resolution and that edge is
> still not smooth like I expect that it really is (after plotting points
> from a numerical simulation).
>
> I would like to get a smooth plot somehow for this function.  Is there
> anything else I can try?  I am new to mathematica.  Is there anyway to
> say, in the function for example, that only real numbers are valid?  Or
> will any of the ContourPlot3D options like min/max recursion or
> singularity help?
>
> Thanks for any assistance!
>
> Michael

```

• Prev by Date: Re: Trouble importing Mathematica EPS files into Deneba Canvas
• Next by Date: Re: Nonzero Min[]
• Previous by thread: help with contourplot 3d
• Next by thread: 14MB image very quickly exhausts 512MB RAM.