[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Contour or mesh plots with irregular meshes
From: |
Jaroslav Hajek |
Subject: |
Re: Contour or mesh plots with irregular meshes |
Date: |
Fri, 21 Aug 2009 22:13:33 +0200 |
On Thu, Aug 20, 2009 at 2:35 AM, Chong Yidong<address@hidden> wrote:
> I have a set of data points {x,y,z} that I'd like to plot in way similar
> to mesh() and/or contour(). However, the {x, y} positions are not
> placed on a regular grid, and mesh() and contour() take gridded data.
>
> Does anyone have a suggestion for how to make the plot?
Typically you'd want to interpolate the data onto a mesh, then plot
it. "griddata" is a built-in option, based on delaunay triangulation.
For more smooth interpolation, you can try, for example, the octgpr
package from OctaveForge.
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz