Re: [Matplotlib-users] plot Africa only

2014-10-24 Thread Tommy Carstensen
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

Re: [Matplotlib-users] plot Africa only

2014-10-24 Thread Filipe Pires Alvarenga Fernandes
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

[Matplotlib-users] Easiest way to create a chloropleth in Python

2014-10-24 Thread ianalis
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

Re: [Matplotlib-users] markers with same size in legend box

2014-10-24 Thread Sterling Smith
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.

Re: [Matplotlib-users] Easiest way to create a chloropleth in Python

2014-10-24 Thread Benjamin Root
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,

Re: [Matplotlib-users] Easiest way to create a chloropleth in Python

2014-10-24 Thread Christian Alis
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

Re: [Matplotlib-users] markers with same size in legend box

2014-10-24 Thread Tommy Carstensen
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

Re: [Matplotlib-users] plot Africa only

2014-10-24 Thread Tommy Carstensen
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

[Matplotlib-users] Sankey diagram arrow shapes

2014-10-24 Thread Fabrice C.
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