Re: Simple? 3D Plotting Problems

• To: mathgroup at smc.vnet.net
• Subject: [mg19291] Re: Simple? 3D Plotting Problems
• From: "Allan Hayes" <hay at haystack.demon.co.uk>
• Date: Sat, 14 Aug 1999 01:45:15 -0400
• References: <7p012p\$76r@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Tracy:

data = Table[Random[Real, {.5, 2.5}], {6}, {5}];

In[31]:=
ListPlot3D[data]

ListPlot3D[data, MeshRange -> {{0.05 , 3.0}, {0.05 , 3.0}},
PlotRange -> {0, 3}]

You can track down this sort of thing in the HelpBrowser
1) Look up ListPlot3D: find that ListPlot3D has the same options as
SurfaceGraphics
2) Look up SurfaceGraphics: find (editted)
MeshRange   Automatic  the required range of x and y coordinates for the
plot
3) Look up MeshRange: find
MeshRange -> {{xmin,xmax},{ymin,ymax}} specifies ranges in x and y....

The Help Browser really is helpful!

Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

Tracy Lunt <ttl6u at node11.unix.virginia.edu> wrote in message
news:7p012p\$76r at smc.vnet.net...
> I am new to Mathematica and I am attempting to do something which should
be
> very straightforward but (of course) I can't get it to work :)
>
> I have a set of Z data (what I calculate) that I want to plot.  Its stored
> in table form as a single variable value in a 2 dimensional table.  Simple
> enough.  If I use ListPlot3D I get a nice graph of the Z data versus a
point
> count for X and Y.  Since the table is 60x60, my X and Y variables are 1,
2,
> 3, 4, ... , 60.  (Essentially its just printing the one variable, Z,
against
> the point number.)
>
> The problem is, X and Y actually go from 0.05 to 3.0 in increments of
0.05.
> I can choose the range for the plot to be from 0.05 to 3.0 and it shows me
> just that portion of the full 1-60 range.
>
> I just want to rescale so I can just tell it the full range of Z's should
> correspond to a range of 3 for X and Y.  Is this possible?
>
> Thanks,
> Tracy
>
> --
> ------------------------------------------------------------------------