Re: [Matplotlib-users] open ascii grid data and plot

2012-02-29 Thread Benjamin Root
On Wednesday, February 29, 2012, questions anon wrote: > I have had some progress reading in the data but am unsure how to create > lats and lons from the info I have (see above). > the error I am receiving is: > > Traceback (most recent call last): > File "d:\plotrainfall.py", line 40, in >

Re: [Matplotlib-users] open ascii grid data and plot

2012-02-29 Thread questions anon
I have had some progress reading in the data but am unsure how to create lats and lons from the info I have (see above). the error I am receiving is: Traceback (most recent call last): File "d:\plotrainfall.py", line 40, in CS = map.contourf(x,y, f, 15,cmap=plt.cm.jet) File "C:\Python27\l

[Matplotlib-users] impossible to deactivate minor grid in logscale

2012-02-29 Thread Federico Ariza
Hi If I set the scale to log and set the grid to minor then, it is impossible to deactivate the grid It does not happen with major or without the logscale The code to reproduce the problem import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ax.plot(range(100), range(10

[Matplotlib-users] custom markers from images?

2012-02-29 Thread C M
I'd like to use, in one case, small loaded images (pngs) as markers on an interactive matplotlib plot (using the OO approach). I'd potentially like to be able to point-pick these markers, too, as well as have them update appropriately if the plot is resized. The only example I've been to find of

[Matplotlib-users] open ascii grid data and plot

2012-02-29 Thread questions anon
I have a txt file (with an associated prj file) containing gridded weather data. Firstly how can I open this file and convert it to a numpy array? and then how to plot in matplotlib, paticularly how to use the lat, lon and nrows,ncols. ncols=886 nrows=691 longitude west=111.975, east=156.275 latitu

[Matplotlib-users] backend with edition capabilities

2012-02-29 Thread Federico Ariza
Dear all I am a long time matplotlib user (under linux) but new to the list (second post). On of the things that bothers me the most is the inability of the standard backend to change simple things (line color, labels, etc...). I resorted to create a simple FrankeinBackend (based on the GtkAgg)

Re: [Matplotlib-users] plt.close(fig) error in python 3.2

2012-02-29 Thread Christoph Gohlke
On 2/29/2012 11:19 AM, josef.p...@gmail.com wrote: > On Wed, Feb 29, 2012 at 2:09 PM, Skipper Seabold wrote: >> On Wed, Feb 29, 2012 at 2:02 PM, wrote: >> >>> >>> I'm not able to build matplotlib myself. >>> >> >> If you're interested, I've been able to build on windows since >> Christophe pro

Re: [Matplotlib-users] plt.close(fig) error in python 3.2

2012-02-29 Thread Christoph Gohlke
On 2/29/2012 10:46 AM, Benjamin Root wrote: > > > On Wed, Feb 29, 2012 at 7:32 AM, > wrote: > > Sorry for reporting this here, it's the only way for matplotlib I'm > signed up for. > > I'm testing scikits statsmodels on Python 3.2 > > plt.close(fig) i

Re: [Matplotlib-users] Set width before saving

2012-02-29 Thread Mario Fuest
Hi there, John Hunter schrieb am Wed, 29. Feb 07:04: > On Feb 28, 2012, at 4:03 PM, Benjamin Root wrote: > > The size of the PNG will be based on the size of your figure object. When > > you create your figure, you can pass a figsize kwarg which takes a tuple of > > width, height in inches (d

Re: [Matplotlib-users] plt.close(fig) error in python 3.2

2012-02-29 Thread josef . pktd
On Wed, Feb 29, 2012 at 2:09 PM, Skipper Seabold wrote: > On Wed, Feb 29, 2012 at 2:02 PM,   wrote: > >> >> I'm not able to build matplotlib myself. >> > > If you're interested, I've been able to build on windows since > Christophe provides the dependencies by doing the following > > http://old.n

Re: [Matplotlib-users] plt.close(fig) error in python 3.2

2012-02-29 Thread Skipper Seabold
On Wed, Feb 29, 2012 at 2:02 PM, wrote: > > I'm not able to build matplotlib myself. > If you're interested, I've been able to build on windows since Christophe provides the dependencies by doing the following http://old.nabble.com/Building-on-Windows-%28Was-Re%3A-Calling-all-Mac-OSX-users!%29

Re: [Matplotlib-users] plt.close(fig) error in python 3.2

2012-02-29 Thread josef . pktd
On Wed, Feb 29, 2012 at 1:46 PM, Benjamin Root wrote: > > > On Wed, Feb 29, 2012 at 7:32 AM, wrote: >> >> Sorry for reporting this here, it's the only way for matplotlib I'm >> signed up for. >> >> I'm testing scikits statsmodels on Python 3.2 >> >> plt.close(fig) in the graphics tests raises an

Re: [Matplotlib-users] plt.close(fig) error in python 3.2

2012-02-29 Thread Benjamin Root
On Wed, Feb 29, 2012 at 7:32 AM, wrote: > Sorry for reporting this here, it's the only way for matplotlib I'm > signed up for. > > I'm testing scikits statsmodels on Python 3.2 > > plt.close(fig) in the graphics tests raises an error, python 3.2, > matplotlib 1.2.x from Gohlke for Win 64, nose 1.

Re: [Matplotlib-users] Event handling in pyqt4

2012-02-29 Thread Benjamin Root
On Wed, Feb 29, 2012 at 5:09 AM, Nils Wagner wrote: > Hi all, > > I tried to combine an event with an annotation. > However, the annotation is not visible, when I click on > the curves. > How can I resolve the problem ? > The code is available at http://pastebin.com/QxKBZtaX > Any pointer would be

[Matplotlib-users] how to take plots for every 1 sec

2012-02-29 Thread Gousios George
Hello , i have this function : def Graph(data): """Make the plot""" plt.colormaps() n=sc.shape(data)[2] ims=[] for i in range(n): mydata=data[:,:,i] im=plt.imshow(mydata,cmap=plt.get_cmap('jet')) ims.append([im]) return ims and i use it

Re: [Matplotlib-users] draw lines in basemap

2012-02-29 Thread Jerzy Karczmarczuk
David Craig : > I'm trying to produce a map with 12 locations marked on it and straight > lines plotted between each point and all other points on the map. I have > the map with the locations ok but am having trouble getting the lines. > My code is below anyone know how to do this?? > ... > for i i

[Matplotlib-users] plt.close(fig) error in python 3.2

2012-02-29 Thread josef . pktd
Sorry for reporting this here, it's the only way for matplotlib I'm signed up for. I'm testing scikits statsmodels on Python 3.2 plt.close(fig) in the graphics tests raises an error, python 3.2, matplotlib 1.2.x from Gohlke for Win 64, nose 1.0.0 File "C:\Programs\Python32\lib\site-packages\ma

Re: [Matplotlib-users] Set width before saving

2012-02-29 Thread John Hunter
On Feb 28, 2012, at 4:03 PM, Benjamin Root wrote: > The size of the PNG will be based on the size of your figure object. When > you create your figure, you can pass a figsize kwarg which takes a tuple of > width, height in inches (defaults to 8 x 6, I think). > > fig = plt.figure(figsize=(

[Matplotlib-users] draw lines in basemap

2012-02-29 Thread David Craig
Hi, I'm trying to produce a map with 12 locations marked on it and straight lines plotted between each point and all other points on the map. I have the map with the locations ok but am having trouble getting the lines. My code is below anyone know how to do this?? Thanks D from mpl_toolkits.ba

[Matplotlib-users] Event handling in pyqt4

2012-02-29 Thread Nils Wagner
Hi all, I tried to combine an event with an annotation. However, the annotation is not visible, when I click on the curves. How can I resolve the problem ? The code is available at http://pastebin.com/QxKBZtaX Any pointer would be appreciated. Thanks in advance. Nils