Commit f0d19c83 authored by Kris Vanneste's avatar Kris Vanneste
Browse files

Fixed problem with initialization of PolygonData in extract_contour_intervals...

Fixed problem with initialization of PolygonData in extract_contour_intervals method of MeshGridData.

git-svn-id: https://svn.seismo.oma.be/svn/seismo/mapping/layeredbasemap/trunk@6968 40b490c5-b4d9-47cb-8714-9bef99b524d5
parent cb72f7d6
......@@ -607,8 +607,9 @@ class MeshGridData(GridData):
if coords.shape[0] > 2:
interior_lons.append(coords[:,0])
interior_lats.append(coords[:,1])
contour_pg = PolygonData(lons, lats, interior_lons, interior_lats,
lower_level)
contour_pg = PolygonData(lons, lats, interior_lons=interior_lons,
interior_lats=interior_lats,
z=lower_level)
contour_mpg.append(contour_pg)
contour_polygons.append(contour_mpg)
return contour_polygons
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment