python - Value Error; Printing out Blank Map -


i trying grid plots on map, grid not showing , getting valueerror.

it says valueerror: not enough values unpack (expected 2, got 1)

import numpy np import matplotlib.pyplot plt cartopy.mpl.gridliner import longitude_formatter, latitude_formatter import cartopy.crs ccrs  avglonlist=[-63.414436532479854, -63.41382404937334, -63.41320293629234, -63.4126322428388, -63.412060546875, -63.41134304470493] avglatlist=[44.5523500343606, 44.55130764100617, 44.550250391568596, 44.54927937825529, 44.54830612909229, 44.5470865885415] klist=['0.1243', '0.1304', '0.1321', '0.1281', '0.1358', '0.1105']  ax = plt.axes(projection=ccrs.platecarree()) #ax.set_extent((-65.0, -58, 40, 47.7), crs=crs_latlon) ax.set_extent((-64.0, -61, 42.5, 45.0), crs=ccrs.platecarree())  #add coastlines , meridians/parallels (cartopy-specific). plt.gca().coastlines('10m') gl=ax.gridlines(crs=ccrs.platecarree(), draw_labels=true,               linewidth=1, color='gray', alpha=0.5, linestyle='-') gl.xlabels_top = false gl.ylabels_right = false gl.xformatter = longitude_formatter gl.yformatter = latitude_formatter     # add title, legend, , display. ax.set_title("mission #13: attenuation coeffiecient\n2012-06-12 17:48:00 til 2012-07-08 12:10:00")  plt.pcolormesh(avglonlist, avglatlist, klist, transform=ccrs.platecarree()) plt.clim(0.0,0.5) plt.show() 


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -