basemap
basemap copied to clipboard
Plot on map projections (with coastlines and political boundaries) using matplotlib
I wanted to draw a choropleth map using basemap. My plan was to read the polygons from the shapefile vis `readshapefile` and then further process them using `shapely`, `descartes`, etc....
Moving issue from matplotlib https://github.com/matplotlib/matplotlib/issues/5991 --- @mnky9800n commented 12 hours ago When passing a value when creating the Basemap object, if that value is a numpy.nan then python 2.x crashes...
Using the following setup, Python 2.7/matplotlib 1.2.1/basemap 1.0.6 ``` python from mpl_toolkits import basemap m1 = basemap.Basemap(projection='cea', lon_0=0) lon = [-135, -45, 45, 135] lat = [45, 45, 45, 45]...
Python 3.4 Conda 3.18.3 Matplotlib 1.5.1 basemap 1.0.7 Adobe Reader XI Trying to plot a polar projection with a custom shapefile results in an error when opening the PDF in...
Kind of ran into an unexpected quirk with pcolormesh that perhaps could be improved to save users like me from themselves! The X, Y arrays to this function need to...
This is due to the fact that calling pcolormesh with either of these projections needs to perform a shiftdata function. But shiftdata assumes that the longitudes correspond 1-to-1 with the...
When you plot a map of Africa. The borders between Sudan and South Sudan are missing. I think basemap is using old shapefiles for the country borders. Would be nice...
Originally posted [here](http://stackoverflow.com/questions/33850052/matplotlib-why-inconsistent-results-between-contour-and-contourf) because I wasn't convinced it was a bug (I'm new to matplotlib)... but I'm increasingly convinced it is a bug, so here we are. I'm plotting some...
Using `pd.Series()` as input for lat/long -> x/y conversion does currently raise a RuntimeError: ``` python x,y = map_katins(df["lon"], df["lat"]) RuntimeError Traceback (most recent call last) in () 15 #...
The [Lambert azimuthal equal-area projection](https://en.wikipedia.org/wiki/Lambert_azimuthal_equal-area_projection) can show the full globe, as in the example image in the Wikipedia article. However, with Basemap(projection='laea',...) I'm only able to plot a small portion...