Re: [Matplotlib-users] Empty squares at end of data after interpolation with griddata?

2009-07-05 Thread Sandro Tosi
Hello Rick, On Sun, Jul 5, 2009 at 03:52, Rick Mullerrpmul...@gmail.com wrote: Having one last problem with matplotlib. I have some data that I'm interpolating with griddata, and then plotting with contourf. For reasons that escape me, the upper right and the lower left squares are not being

Re: [Matplotlib-users] Empty squares at end of data after interpolation with griddata?

2009-07-05 Thread Jeff Whitaker
Rick Muller wrote: Having one last problem with matplotlib. I have some data that I'm interpolating with griddata, and then plotting with contourf. For reasons that escape me, the upper right and the lower left squares are not being plotted. I'm printing out a 10x10 version of this to

[Matplotlib-users] histograms ...

2009-07-05 Thread Pau
Hello, I am trying to make a histogram with matplotlib and I do not understand the example I found http://n2.nabble.com/Python-MatPlotLib-histogram-example-td1922503.html I have a data file called histo.dat which looks like - # # Eccentricity on

Re: [Matplotlib-users] histograms ...

2009-07-05 Thread Sebastian Busch
Pau wrote: ... MODE: 0.00e+00 - 1.00e-04 (2226):** 1: 1.00e-04 - 2.00e-04 ( 482):* 2: 2.00e-04 - 3.00e-04 ( 273): 3: 3.00e-04 - 4.00e-04 ( 173):

Re: [Matplotlib-users] histograms ...

2009-07-05 Thread Pau
Hello! thanks for the quick answer! I have removed the text lines (do you mean the ones starting with a hash, #? I removed those) It complained about from scipy import * # complained ImportError: No module named scipy So I commented it out and added from pylab import * But it's crashing:

Re: [Matplotlib-users] histograms ...

2009-07-05 Thread Pau
ok, I installed now scipy Traceback (most recent call last): File ./prova.py, line 14, in module y.append(int(line.split('(')[1].split(')')[0])) IndexError: list index out of range what is out of range? sorry for the spamming... :( 2009/7/5 Pau vim.u...@googlemail.com: Hello! thanks

Re: [Matplotlib-users] histograms ...

2009-07-05 Thread Gökhan SEVER
On Sun, Jul 5, 2009 at 3:41 PM, Pau vim.u...@googlemail.com wrote: ok, I installed now scipy Traceback (most recent call last): File ./prova.py, line 14, in module y.append(int(line.split('(')[1].split(')')[0])) IndexError: list index out of range what is out of range? sorry for the

Re: [Matplotlib-users] histograms ...

2009-07-05 Thread Pau
Hello, thanks, yes, I had done this already. It's pointing to the append place for y, but I am absolutely lost at that line. I don't understand it. I guess this has to do with the format of the data (see previous e-mail) --- 13y.append(int(line.split('(')[1].split(')')[0])) anyway...

Re: [Matplotlib-users] histograms ...

2009-07-05 Thread Gökhan SEVER
OK, You are one step closer to point out the error. Look for an instance of line. What does it output? Then try fiddling with the split() function and proper indexes. Haha, are you a Mediterranean person or what? On Sun, Jul 5, 2009 at 3:54 PM, Pau vim.u...@googlemail.com wrote: Hello,

Re: [Matplotlib-users] histograms ...

2009-07-05 Thread Sebastian Busch
Pau wrote: ... 2009/7/5 Gökhan SEVER gokhanse...@gmail.com: On Sun, Jul 5, 2009 at 3:41 PM, Pau vim.u...@googlemail.com wrote: ... Traceback (most recent call last): File ./prova.py, line 14, in module y.append(int(line.split('(')[1].split(')')[0])) IndexError: list index out of range

Re: [Matplotlib-users] contour plot: clabel manual changes figure properties

2009-07-05 Thread Valentin Flunkert
Is there some way to prevent this or alternatively set the properties after manually setting the labels? Hi, I just found out how to restore the old settings: save = pl.rcParams.copy() pl.clabel(cs, manual=True) pl.rcParams.update(save) Maybe this should be the default behaviour? Regards,

Re: [Matplotlib-users] histograms ...

2009-07-05 Thread Sebastian Busch
Pau wrote: ... MODE: 0.00e+00 - 1.00e-04 (2226):** 1: 1.00e-04 - 2.00e-04 ( 482):* 2: 2.00e-04 - 3.00e-04 ( 273): 3: 3.00e-04 - 4.00e-04 ( 173):

[Matplotlib-users] Fwd: Empty squares at end of data after interpolation with griddata?

2009-07-05 Thread Rick Muller
Meant to copy this to the list as well for completeness. -- Forwarded message -- From: Rick Muller rpmul...@gmail.com Date: Sun, Jul 5, 2009 at 2:03 PM Subject: Re: [Matplotlib-users] Empty squares at end of data after interpolation with griddata? To: Jeff Whitaker