Re: Plotting 3D with regions with non constant limits
- To: mathgroup at smc.vnet.net
- Subject: [mg38718] Re: [mg38694] Plotting 3D with regions with non constant limits
- From: Omega Consulting <info at omegaconsultinggroup.com>
- Date: Mon, 6 Jan 2003 03:45:14 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
At 05:34 AM 1/5/2003, Frans de Boer wrote: >Hello everybody, > >Consider the following problem > >Plot3D[x + y, {y, 0, 1 - x^2}, {x, -1, 1}] >or >Plot3D[x + y, {x, -1, 1},{y, 0, 1 - x^2}] > >Both are not accepted because Mathematica demands constant limiting values >for both x and y. >This seems strange to me. >Is there a way to plot a function of two variables where the limiting values >of one depend on the other? > >I solved the problem by plotting > >ParametricPlot3D[{r Cos[t], r^2 (Sin[t])^2,r^2 (Sin[t])^2 + r Cos[t]}, {t, >0, \[Pi]}, {r, 0, 1}] > >but in general I find this to complicated. > >Is there a direct way? > >Sincerely, > >Frans de Boer TriangularSurfacePlot can plot a non-rectangular array of 3D data. data = Table[{x, y, x + y}, {x, -1, 1,.1},{y, 0, 1 - x^2, .05}]; <<DiscreteMath` TriangularSurfacePlot[Flatten[data,1]] -------------------------------------------------------------- Omega Consulting "The final answer to your Mathematica needs" http://omegaconsultinggroup.com