[Matplotlib-users] Basemap scatter plot, set color according to value

2014-09-22 Thread Xiaobo Yang
Hi, I want to show some points on a world map. But the color of a point is linked to the value at the point. Any idea why the code below does not give what I want (same color, no legend)? Many thanks, Tom from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import numpy as np

Re: [Matplotlib-users] basemap scatter

2013-04-12 Thread ChaoYue
I'm afraid the scatter plot does not allow afterward adjustment with size currently (by using setp). Probably you should redraw the scatter points with different sizes. like for x,y,z in zip(xlist,ylist,sizelist): m.scatter(x,y,s=z) if you question is to change the real 2km or 1.5km to the s

[Matplotlib-users] basemap scatter

2013-04-12 Thread Mario Mech
Hi all, I'm trying to do a scatter plot within a map created by basemap. m = Basemap(projection='ortho',lat_0=45,lon_0=0,resolution='l') X,Y = m(lon,lat) m.scatter(X,Y,s=sizes,c=data,edgecolor='none') This works fine. Now I want to change the sizes of the markers so that the marker at point A h