MathGroup Archive 2003

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

Search the Archive

contour plotting over a non-uniform grid

  • To: mathgroup at smc.vnet.net
  • Subject: [mg42990] contour plotting over a non-uniform grid
  • From: "Sabatke, Erin" <esabatke at ball.com>
  • Date: Thu, 7 Aug 2003 00:53:50 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

I would like to be able to make contour plots out of data that is a list of {x,y,z} values, rather than the standard method that assumes a grid of {x,y} points that is uniform and accepts only an array of z-values.  So far, I've only been able to get a "spotted" contour plot:

<< Graphics`Graphics3D`
data = Flatten[Table[{a, b, a*b}, {a, 0, 1, 0.1}, {b, 0, 1, 0.1}], 1];
gr1 = ScatterPlot3D[data, PlotStyle -> {AbsolutePointSize[25]}, ViewPoint -> {0.000, 0.000, -1000.000}, Axes -> False, Boxed -> False, DisplayFunction -> Identity];
Show[gr1 /. {Point[{x_, y_, z_}] -> {Hue[0.7*z], Point[{x, y, z}]}}, DisplayFunction -> $DisplayFunction];

It works, but I don't think it looks very nice.  Does anyone know how to get a nicer/traditional contour plot out of a list of {x,y,z} values?


esabatke at ball.com


  • Prev by Date: Re: Re: Odd behavior (bug?) with Exp[-x^2} and Erf
  • Next by Date: Problem
  • Previous by thread: Re: RuleCondition vs Condition
  • Next by thread: Re: contour plotting over a non-uniform grid