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

Re: [Matplotlib-users] Linewidths in data space?

2013-04-12 Thread Michael Droettboom
Unfortunately, I don't think there is a way to do this at present. Out of curiosity, what is the use case? I wonder if the best way to do this would be to expose the stroking to the Python level, so given a line one could get a filled path that is the stroked line. I'm not sure how else this

Re: [Matplotlib-users] Impossible to draw a direction of arrows in Matplotlib???

2013-04-12 Thread andrew nelson
> > Message: 1 > Date: Fri, 12 Apr 2013 13:55:32 +0400 > From: Bakhtiyor Zokhidov > Subject: [Matplotlib-users] Impossible to draw a direction of arrows > in Matplotlib??? > > Hi, > I have encountered some problem while I was drawing a direction of > arrow. I have point (x,y) coordinates

Re: [Matplotlib-users] Impossible to draw a direction of arrows in Matplotlib???

2013-04-12 Thread Ryan Nelson
I'm not sure that I understand exactly what you are trying to do, but you may want to look into Matplotlib annotation. Here's a really quick example: import matplotlib.pyplot as plt plt.annotate('', (1, 1), (0, 0), arrowprops=dict(facecolor='black')) plt.axis([-1, 2, -1, 2]) plt.show()

[Matplotlib-users] Impossible to draw a direction of arrows in Matplotlib???

2013-04-12 Thread Bakhtiyor Zokhidov
Hi, I have encountered some problem while I was drawing a direction of arrow. I have point (x,y) coordinates and angle of them. What I want to do is that to draw arrow according to the given angle (just to show the point direction as an arrow in each point coordinate). Here, we should assume coord

[Matplotlib-users] Linewidths in data space?

2013-04-12 Thread Michael Wimmer
I have a collection of Patches and Lines that have their coordinates in data space, i.e. like in the following example: import matplotlib.pyplot as plt import matplotlib.patches as mpatches import matplotlib.collections as mcollections import matplotlib.lines as mlines fig = plt.figure() ax = fi