Does anyone know, whether a continent can be left out when plotting
with matplotlib basemap? For example I wish to hide Europe (and
Madagascar) on this plot:
http://www.tommycarstensen.com/python3_matplotlib_basemap_merc_bluemarbleTrue_scaledTrue_1000GTrue_hresolution.jpg
On Sat, Oct 18, 2014 at
Hi Tommy, there is not easy way to do it with matplolib+basemap. Also, you
will find it extra hard because the image you are plotting (blue
marble) is raster that is cut in lon, lat bounding box. Therefore, unless
you create a mask around what to plot and what not to plot, it will show
I have been creating chloropleth maps in Python by adding patches and/or
polygons in a matplotlib Axes but I'm looking for something easier to use.
Ideally, the interface should be similar to how contour maps or pseudocolor
plots are created where, at the minimum, only one call to a function is
Your solution is about as good as proxy artists in legends, which would be
the official method. (Google proxy artist matplotlib.)
It may be relevant that you can access the marker of the legend entries with
the _marker attribute of the handles. Search the mailing list archives for
this one.
Do you mean choropleth? http://en.wikipedia.org/wiki/Choropleth_map
On Fri, Oct 24, 2014 at 1:18 PM, ianalis iana...@gmail.com wrote:
I have been creating chloropleth maps in Python by adding patches and/or
polygons in a matplotlib Axes but I'm looking for something easier to use.
Ideally,
Hi Ben,
Yes, indeed. I'm referring to a choropleth. :)
Thanks,
Christian
On Oct 24, 2014 8:23 PM, Benjamin Root ben.r...@ou.edu wrote:
Do you mean choropleth? http://en.wikipedia.org/wiki/Choropleth_map
On Fri, Oct 24, 2014 at 1:18 PM, ianalis iana...@gmail.com wrote:
I have been creating
Thanks for feedback Thomas and Sterling. Here is the ugly solution I
ended up with:
# plot a marker with a blank label
map.plot(x, y, 'o', markersize=markersize, markerfacecolor=color, label=)
# specify a coordinate outside the map region (Africa)
x,y = map(-60, -60)
# use a fixed
Felipe, thanks for the links! I do realize it would be impossible to
leave out non-African mainland when using bluemarble(). I could color
Europe, Madagascar, Middle East white on a map with filled continents,
but I would have to be accurate at the Israel/Egypt, Djibouti/Yemen
and Spain/Morocco
Dear all,
I have read the 3 Sankey diagram examples.
The first example shows arrow shapes with the default value for angle while the
second example shows arrows with180 degree angles which make them look like a
flat line.
Does anyone know if it would be possible to mix the two styles inside a