MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plotting Surfaces from data

  • To: mathgroup at smc.vnet.net
  • Subject: [mg24472] Re: [mg24386] Plotting Surfaces from data
  • From: Derek Stoll <dcstoll at us.ibm.com>
  • Date: Wed, 19 Jul 2000 01:21:48 -0400 (EDT)
  • Organization: IBM Global Services North -- Burlington, Vermont, USA
  • References: <8l0p5k$dq5@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com


steffenz at server2.fo.FH-Koeln.DE wrote:

> > Date:          Wed, 12 Jul 2000 23:13:27 -0400 (EDT)
> > From:          Derek Stoll <dcstoll at us.ibm.com>
To: mathgroup at smc.vnet.net
> > To:            mathgroup at smc.vnet.net
> > Subject: [mg24472]       [mg24386] Plotting Surfaces from data
> > Organization:  IBM Global Services North -- Burlington, Vermont, USA
>
> > I have data of the form, {{x,y,z},...}.  I am trying to plot it on a 3D
> > surface where the color is a function of z.  I have been able to plot it
> > in several ways, but none of them will allow me to set the color as a
> > function of z using the ColorFunction->Hue or any other means that I can
> > come up with.  Can anyone tell me a way to do this?
> > Thank you,
> > Derek
> >
> >
>
> Hi Derek!
>
> I am always konverting the data into a function.
>
> Try this:
>
> f = Interpolation[data]
> Plot3D[funk[x, y], {x,.. ,..}, {y,.. ,.. }, ColorFunction -> Hue]
>
> bye
>
> Steffen
>
> Dipl.-Ing. Steffen Zozgornik
>
> Institut fur Licht- und Bautechnik
> an der Fachhochschule Koln
> Gremberger Strasse 151 a
> D - 51105 Koln
>
> Tel.: +49 - 221 - 83 10 95
> Fax.: +49 - 221 - 83 55 13

Thank you for your suggestion, but it is not working with my data.  When I
tried it, I got this responce.
Interpolation::indim:
    The coordinates {34.4415190000000004} in dimension 2 are not consistent
with other coordinates in this dimension.
I'm not sure exactly what it means, but it doesn't want to work.  I wonder if
part of the trouble is that Mathematica does not seem to have been designed to
cope well with data not in a straight rectangular grid.  Although I have x,y,z
data, the data is in concentric rings.
Derek



  • Prev by Date: Re: Malfunction of Position or where am I wrong?
  • Next by Date: Re: subscripted variables and comments
  • Previous by thread: Re: Plotting Surfaces from data
  • Next by thread: complex numbers