Stupid mistake, My data array was wrong I had it just to rotate and now it
is working.
On Thu, Sep 29, 2011 at 2:01 PM, Michal micta...@gmail.com wrote:
Thank you for the links, but I had trouble to get them running with
Matplotlib 1.0.1. However, I downloaded the source code from the
IMHO, when looking for basics and even more with intent to replicate some
graph, it's easy to start by looking at matplotlib gallery:
http://matplotlib.sourceforge.net/gallery.html and find best match.
In you case:
Thank you for the links, but I had trouble to get them running with
Matplotlib 1.0.1. However, I downloaded the source code from the Matplotlib
book ( http://www.packtpub.com/support?nid=4110 ) and in chapter 9 is an
example (7900_09_04_cvs.py) with work with csv files.
I have tried to modify the
hey there!
Pau wrote:
...
0.00e+00 1.00e-04 81039
1.00e-04 2.00e-04 4472
2.00e-04 3.00e-04 2033
...
The bins are given by the two first number columns.
For instance, the first bin is from 0.00e+00 to 1.00e-04 and has the
number of data 81039
hey pau!
i do not understand hist
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):
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:
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
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
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...
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,
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
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):
Simson,
Using your example I get most of the values around 0.5, and the ends
near 2.3. This is correct for a probability density function; the
integral of the pdf over the range of the bins should be 1. This way
the pdf values as a function of x don't change with changes in the
number of
13 matches
Mail list logo