diff options
Diffstat (limited to 'docs/plot/plot.py')
| -rw-r--r-- | docs/plot/plot.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/plot/plot.py b/docs/plot/plot.py index 04a3d423..139281bf 100644 --- a/docs/plot/plot.py +++ b/docs/plot/plot.py @@ -62,7 +62,7 @@ from shapely.ops import transform from descartes import PolygonPatch PROJ = '../../src/proj' -PROJ_LIB = '../../nad' +PROJ_LIB = '../../data' LINE_LOW = 'data/coastline.geojson' LINE_MED = 'data/coastline50.geojson' @@ -118,7 +118,7 @@ def interp_coords(coords, tol): xy.append((x[offset:i], y[offset:i])) # Interpolate between points above tolerance. - n = np.ceil(dsts[i] / tol) + n = int(np.ceil(dsts[i] / tol)) x1 = np.linspace(x[i], x[i + 1], n + 1) y1 = np.linspace(y[i], y[i + 1], n + 1) xy.append((x1[:-1], y1[:-1])) |
