Re: Contourplot3d of a list of expressions
- To: mathgroup at smc.vnet.net
- Subject: [mg93130] Re: Contourplot3d of a list of expressions
- From: dh <dh at metrohm.ch>
- Date: Tue, 28 Oct 2008 04:52:58 -0500 (EST)
- References: <gdrqak$mof$1@smc.vnet.net>
Hi Walied,
ContourPlot3D can only Plot one expresion. To get several in one plot,
you first draw them separately and join them using Show. E.g.:
g=ContourPlot3D[#,{x,0,1},{y,0,1},{z,0,1}]&/@{x+y+z,x-y-z}
Show@@g
hope this helps, Daniel
Walied.Othman at gmail.com wrote:
> I am puzzled, I have a Table of 4 expressions in the variables X,Y,t.
> Somewhere in obtaining those expressions I also use transpose. The
> following works, it returns four separate plots
> {ContourPlot3D[Evaluate[{CovBand[[1]]}], {X, -4, 4}, {Y, -4, 6}, {t,
> 1, 2.7}], ContourPlot3D[Evaluate[{CovBand[[2]]}], {X, -4, 4}, {Y, -4,
> 6}, {t, 1, 2.7}], ContourPlot3D[Evaluate[{CovBand[[3]]}], {X, -4, 4},
> {Y, -4, 6}, {t, 1, 2.7}], ContourPlot3D[Evaluate[{CovBand[[4]]}], {X,
> -4, 4}, {Y, -4, 6}, {t, 1, 2.7}]}
>
> However, whenever I try to plot all of them in one single box, using
> {ContourPlot3D[Evaluate[{CovBand[[1]],CovBand[[2]],CovBand[[3]],CovBand[[4]]}],
> {X, -4, 4}, {Y, -4, 6}, {t, 1, 2.7}]}
> I consistently get a "-3.5 is not a variable" or "... can not be
> transposed" errors. Yes, some transposing does happen to obtain the
> expression.
>
> At the basis of this lie 2 equations, both of which are a circle or an
> ellipse. I use the exact same approach for all combinations, and
> circle-circle and ellipse-ellipse does what I want it to do without
> producing errors, but ellipse-circle does not as outlined above. And
> it's only the contourplot3d producing the errors, all the computations
> leading to contourplot3d execute without an error.
>
> Any pointers to what's going wrong?
>
> kind regards,
> Walied Othman
>
--
Daniel Huber
Metrohm Ltd.
Oberdorfstr. 68
CH-9100 Herisau
Tel. +41 71 353 8585, Fax +41 71 353 8907
E-Mail:<mailto:dh at metrohm.com>
Internet:<http://www.metrohm.com>