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


Groups > comp.soft-sys.math.mathematica > #14937 > unrolled thread

Re: Axes in Plot3D and ListPlot3D

Started byBob Hanlon <hanlonr357@gmail.com>
First post2013-06-19 05:22 +0000
Last post2013-06-19 05:22 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Axes in Plot3D and ListPlot3D Bob Hanlon <hanlonr357@gmail.com> - 2013-06-19 05:22 +0000

#14937 — Re: Axes in Plot3D and ListPlot3D

FromBob Hanlon <hanlonr357@gmail.com>
Date2013-06-19 05:22 +0000
SubjectRe: Axes in Plot3D and ListPlot3D
Message-ID<kprf7e$165$1@smc.vnet.net>
Just include the coordinates in the Table


data = Flatten[
   Table[{x, y, Sin[x + y^2]}, {x, -3, 3, 1/16}, {y, -3, 3, 1/16}], 1];


ListPlot3D[data, AxesLabel -> {"x", "y", "z"}]



Bob Hanlon


On Mon, Jun 17, 2013 at 6:25 AM, Ray Koopman <koopman@sfu.ca> wrote:

> Plot3D[Sin[x + y^2],{x,-3,3},{y,-3,3},AxesLabel->{"x","y","z"}]
>
> gives a plot that I thought I could duplicate by creating a table
>
> z = Table[Sin[x + y^2],{x,-3,3,1/4},{y,-3,3,1/4}];
>
> and then using ListPlot3D:
>
> ListPlot3D[z,AxesLabel->{"x","y","z"},MeshRange->{{-3,3},{-3,3}}] .
>
> That gives a different view of the same surface, with the wrong labels
> on the axes. To duplicate the Plot3D result I must transpose the array:
>
> ListPlot3D[Transpose@z
> ,AxesLabel->{"x","y","z"},MeshRange->{{-3,3},{-3,3}}]
>
> That seems unreasonable. What have I missed?
> Is it mentioned somewhere in the documentation?
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web