Re: HELP!!! Newbie question
- To: mathgroup at smc.vnet.net
- Subject: [mg40835] Re: [mg40800] HELP!!! Newbie question
- From: Bobby Treat <drmajorbob+MathGroup3528 at mailblocks.com>
- Date: Mon, 21 Apr 2003 06:58:27 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Here's another way to get the x and y spans of the data:
f = Interpolation[data]
spanX = {x, Sequence @@ f[[1, 1]]}
spanX = {y, Sequence @@ f[[1, 2]]}
Bobby
-----Original Message-----
From: Bobby Treat <drmajorbob+MathGroup3528 at mailblocks.com>
To: mathgroup at smc.vnet.net
Subject: [mg40835] Re: [mg40800] HELP!!! Newbie question
Here's an example in which I first manufacture the data array:
data = Flatten[Table[{x, y, x^2 + y^2}, {x, 0, 2, .1}, {y, 0.3, 5,
.5}], 1];
Here's an interpolation function:
f = Interpolation[data];
To plot the data we need the span of its x and y values:
spanX = {x, Min@#, Max@#} &@data[[All, 1]];
spanY = {y, Min@#, Max@#} &@data[[All, 2]];
ContourPlot[f[x, y], Evaluate@spanX, Evaluate@spanY]
Bobby
-----Original Message-----
From: prodogoss <prodogoss at btinternet.com>
To: mathgroup at smc.vnet.net
Subject: [mg40835] [mg40800] HELP!!! Newbie question
I have a load of {x, y, z} points which I have just about managed to
Import[] into Mathematica as a Table and now want to plot the data as
a countour-type plot
How do I achieve this?