Re: Scaled Axes

• To: mathgroup at smc.vnet.net
• Subject: [mg13830] Re: Scaled Axes
• From: "Allan Hayes" <hay at haystack.demon.cc.uk>
• Date: Sat, 29 Aug 1998 04:41:09 -0400
• References: <6s5ka1\$c54@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Wolfgang Grond wrote in message <6s5ka1\$c54 at smc.vnet.net>...
>Hi,
>
>I have a question concerning 3D graphics:
>
>I want to get a ListPlot3D from a field, where the x and y axes don't
>give the position of a z-value in that field, but show the real size of
>a value which corresponds to that axes.
>
>To give an example, let's plot a temperature over a material composition
>
>(x) and a time (y), where x goes from 0-80% (in steps of 10%) and y goes
>
>from 1 sec to 1000 sec (in steps of 20 sec).
>
>A ListPlot3D (as I know) would show the temperature over a 8x50 grid,
>where x is labeled from 1-8 (not 0-80), and y is labeled from 1-50 (not
>1-1000).
>
>Many thanks in advance for any support.
>
>Wolfgang Grond
>

The option MeshRange will set the range:

ListPlot3D[Table[Sin[x*y] + Random[Real, {-0.15, 0.15}],
{x, 0, (3*Pi)/2, Pi/15}, {y, 0, (3*Pi)/2, Pi/15}],
MeshRange -> {{0, (3*Pi)/2}, {0, (3*Pi)/2}}];

The option Ticks can then be used to specify the ticks

ListPlot3D[Table[Sin[x*y] + Random[Real, {-0.15, 0.15}],
{x, 0, (3*Pi)/2, Pi/15}, {y, 0, (3*Pi)/2, Pi/15}],
MeshRange -> {{0, (3*Pi)/2}, {0, (3*Pi)/2}},
Ticks ->
{Range[0, (3*Pi)/2, Pi/4], Range[0, (3*Pi)/2, Pi/4],
Automatic}];

-------------------------------------------------------------
Allan Hayes
Training and Consulting
Leicester UK
http://www.haystack.demon.co.uk
hay at haystack.demon.co.uk
voice: +44 (0)116 271 4198
fax: +44(0)116 271 8642

```

• Prev by Date: Re: Mathematica
• Next by Date: Re: Importing CSV (comma separated values) files?
• Previous by thread: Scaled Axes
• Next by thread: Re: Scaled Axes