Re: [Matplotlib-users] Use a variable for the ms option in the plot function

2011-05-03 Thread Ian Bell
Pau, linewidth=xx (or lw=xx) does that job in scatter plots. Also see http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.scatterthough really it isn't very clear and I found it out by accident Regards, Ian ---- Ian Bell Graduate Research Assistant Herrick Labs P

Re: [Matplotlib-users] plotting points/locations from data file

2011-04-19 Thread Ian Bell
weird types of files. Ian ---- Ian Bell Graduate Research Assistant Herrick Labs Purdue University email: ib...@purdue.edu cell: (607)227-7626 On Tue, Apr 19, 2011 at 7:32 PM, G Jones wrote: > You may find it easier to use mlab.csv2rec or numpy.loadtxt. > > e.g. > > data = csv2re

Re: [Matplotlib-users] plotting points/locations from data file

2011-04-19 Thread Ian Bell
ould be lons[i]. It looks like you have two spaces as the delimiter currently based on your copy-paste. That's why split doesn't give you two values. In general I recommend that you avoid two spaces as the delimiter, just going to cause problems. Ian Bell Graduate Research Assistant

Re: [Matplotlib-users] plotting points/locations from data file

2011-04-19 Thread Ian Bell
test.py", line 319, in > > (lat,lon)=line.strip().split(' ') > ValueError: too many values to unpack > > > There are 203 records in the data file. Line 319 of test.py is this: > > > (lat,lon)=line.strip().split(' ') > > > --- On *Tu

Re: [Matplotlib-users] plotting points/locations from data file

2011-04-19 Thread Ian Bell
loat(lon)) for i in range(len(lons)): plt.text(lats[i],lon[i],str(i+1),ha='center',va='center',color='white') I'm sure there are a bunch of more compact ways to do this, but this should work. Ian Ian Bell Graduate Research Assistant Herrick Labs Purdue University

[Matplotlib-users] Matplotlib+GTKAgg+py2exe

2010-11-15 Thread Ian Bell
;: 2, "excludes": excludes, "packages": packages, "includes": includes, "dll_excludes": dll_excludes, # using 2 to reduce nu