Re: Plotting (x,y,z) style data
- To: mathgroup at smc.vnet.net
- Subject: [mg14168] Re: Plotting (x,y,z) style data
- From: Paul Abbott <paul at physics.uwa.edu.au>
- Date: Wed, 30 Sep 1998 02:04:17 -0400
- Organization: University of Western Australia
- References: <6ud2hd$17i@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Emma.Gottesman at snellwilcox.com wrote: > I have a set of data (z) which is dependant on two variables (x and y). > > x and y are not linearly spaced, for instance the values for x are > 1,5,15,20,25,30 > and the values of y are > 2.8265, 6.0901, 8.4037, 9.7438, 15.4105, 16.2210, 18.0747, 27.0028, > 32.9710, 33.4117, 36.8778, 47.0123, 47.1012, 64.0642, 64.8562, > 66.9691, 70.2852, 85.6802, 89.2302, 93.1160 > > I've currently got the data in the form of a list of triples i.e. { > {x1,y1,z1},{x2,y2,z2} .....} > > I'm trying to fit a model to this data, and as part of that I'd like to > plot it. > What's the best way of plotting this type of 3D data in Mathematica > (note: I'm a bit of a Mathematica novice). Have a look at the functions in the DiscreteMath`ComputationalGeometry` package which is included with version 3.0. Also, the book "Mathematica Graphics" by Tom Wickham-Jones includes code for triangular interpolation which generates a function for approximating irregular data. The packages are available from MathSource at http://www.mathsource.com/cgi-bin/MathSource/Enhancements/Graphics/3D/0208-976 Cheers, Paul -- ____________________________________________________________________ Paul Abbott Phone: +61-8-9380-2734 Department of Physics Fax: +61-8-9380-1014 The University of Western Australia Nedlands WA 6907 mailto:paul at physics.uwa.edu.au AUSTRALIA http://www.physics.uwa.edu.au/~paul God IS a weakly left-handed dice player ____________________________________________________________________