Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14899 > unrolled thread
| Started by | amannucci <Anthony.J.Mannucci@jpl.nasa.gov> |
|---|---|
| First post | 2013-06-16 09:08 +0000 |
| Last post | 2013-06-17 10:13 +0000 |
| Articles | 2 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
ListPlot3D amannucci <Anthony.J.Mannucci@jpl.nasa.gov> - 2013-06-16 09:08 +0000
Re: ListPlot3D amannucci <Anthony.J.Mannucci@jpl.nasa.gov> - 2013-06-17 10:13 +0000
| From | amannucci <Anthony.J.Mannucci@jpl.nasa.gov> |
|---|---|
| Date | 2013-06-16 09:08 +0000 |
| Subject | ListPlot3D |
| Message-ID | <kpjvan$9m8$1@smc.vnet.net> |
I could use some help with ListPlot3D. These are examples from the documentation. My preconceived notion of what this should do is place a data point at coordinates {x,y,z} and connect a surface along the z_i. Here is an example from the Mathematica documentation:
ListPlot3D[{{1, 1, 1, 1}, {1, 2, 1, 2}, {1, 1, 3, 1}, {1, 2, 1, 4}},
Mesh -> All]
I cannot figure out how to read these data. What are the x,y values? They are apparently "the x and y coordinate values for each data point to be successive integers starting at 1." How does this thread through the data? For the first point, x=1, y=1, z=1. For the last point, x=4,y=4, z= 4. What about intermediate points? I can't figure it out. Is it x=1, y= 1..4, x=2,y=1..4,x=3,y=1..4,x=4,y=1..4? The documentation does not say.
There is also the data triplets. E.g. from the documentation,
ListPlot3D[{{0, 0, 1}, {1, 0, 0}, {0, 1, 0}}, Mesh -> All]
This I understand. It is a triplet of {x,y,z}. However, when I feed in the following data set, the graph is completely blank:
{{0., 0., 0.}, {0.1, 0.1, 0.248514}, {0.2, 0.2, 0.329812}, {0.3, 0.3,
0.324989}, {0.4, 0.4, 0.275382}, {0.5, 0.5, 0.207606}, {0.6, 0.6,
0.138975}, {0.7, 0.7, 0.0799098}, {0.8, 0.8, 0.0358315}, {0.9, 0.9,
0.008981}, {1., 1., 0.}}
x and y span 0->1. There are z-values, but nothing is plotted. If I manually change the first three data points to be (mimicing the docs):
{0., 0., 0.}, {1.0, 0.0, 0.248514}, {0., 1., 0.329812}
I then see a surface. I cannot figure this out.
Thanks for any help you can provide.
[toc] | [next] | [standalone]
| From | amannucci <Anthony.J.Mannucci@jpl.nasa.gov> |
|---|---|
| Date | 2013-06-17 10:13 +0000 |
| Message-ID | <kpmngq$h11$1@smc.vnet.net> |
| In reply to | #14899 |
On Sunday, June 16, 2013 2:08:39 AM UTC-7, amannucci wrote:
> I could use some help with ListPlot3D. These are examples from the documentation. My preconceived notion of what this should do is place a data point at coordinates {x,y,z} and connect a surface along the z_i. Here is an example from the Mathematica documentation:
>
>
>
> ListPlot3D[{{1, 1, 1, 1}, {1, 2, 1, 2}, {1, 1, 3, 1}, {1, 2, 1, 4}},
>
> Mesh -> All]
>
> I cannot figure out how to read these data. What are the x,y values? They are apparently "the x and y coordinate values for each data point to be successive integers starting at 1." How does this thread through the data? For the first point, x=1, y=1, z=1. For the last point, x=4,y=4, z= 4. What about intermediate points? I can't figure it out. Is it x=1, y= 1..4, x=2,y=1..4,x=3,y=1..4,x=4,y=1..4? The documentation does not say.
>
>
>
> There is also the data triplets. E.g. from the documentation,
>
> ListPlot3D[{{0, 0, 1}, {1, 0, 0}, {0, 1, 0}}, Mesh -> All]
>
>
>
> This I understand. It is a triplet of {x,y,z}. However, when I feed in the following data set, the graph is completely blank:
>
>
>
> {{0., 0., 0.}, {0.1, 0.1, 0.248514}, {0.2, 0.2, 0.329812}, {0.3, 0.3,
>
> 0.324989}, {0.4, 0.4, 0.275382}, {0.5, 0.5, 0.207606}, {0.6, 0.6,
>
> 0.138975}, {0.7, 0.7, 0.0799098}, {0.8, 0.8, 0.0358315}, {0.9, 0.9,
>
> 0.008981}, {1., 1., 0.}}
>
>
>
> x and y span 0->1. There are z-values, but nothing is plotted. If I manually change the first three data points to be (mimicing the docs):
>
> {0., 0., 0.}, {1.0, 0.0, 0.248514}, {0., 1., 0.329812}
>
>
>
> I then see a surface. I cannot figure this out.
>
>
>
> Thanks for any help you can provide.
Thanks for the helpful comments I received. Yes, I later realized that the use of Table meant I was creating a line, therefore no surface. I used a Do[] to create the data structure I needed. There must be a more procedural way, but I don't know it...
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web