Jeff Whitaker <jswhit-97jfqw80gc6171pxa8y+qA@...1455...> writes:
···
On 7/28/10 8:32 PM, Nikolaus Rath wrote:
Hello,
What is the best way to generate a contour plot from a set of
non-uniformly sampled data (i.e., the datapoints do not lie on the
points of a rectangular grid but are randomly distributed)?Thanks,
-Nikolaus
Nikolaus: You can either use mlab.griddata to interpolate the data to a
regular grid, or use pyplot.tricontour to perform a delaunay
triangulation and contour the resulting triangle values.
Fantastic, thanks!
Best,
-Nikolaus
--
»Time flies like an arrow, fruit flies like a Banana.«
PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C