[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Polygon hull

Hi, I have an array of data and I want to plot a polygon that encompasses
all the points within it.  I have tried JHU's convexhull but it fails to
encompass all the data (example below).  Does anyone else have a program
to do this? I thought I'd ask before trying it myself :) Thanks! Barbara

Example of how convexhull fails in this case:


plot, x, y, color=0, /nodata

convexhull, x, y, xh, yh

polyfill, xh, yh, color=150, fill_pattern=50

plot, x, y, psym=7, color=0