Re: HELP!!! Newbie question
- To: mathgroup at smc.vnet.net
- Subject: [mg40805] Re: [mg40800] HELP!!! Newbie question
- From: Bobby Treat <drmajorbob+MathGroup3528 at mailblocks.com>
- Date: Sat, 19 Apr 2003 22:59:06 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
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: [mg40805] [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?