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 well myself, but i think it might be doing
something different from what you want. i think that if you run hist on
e.g. the numbers
100, 11, 10, 9, 0, 0, 0, 0, 0

and make 10 bins, it will give you

x       y
0       5
10      3
20      0
30      0
40      0
50      0
60      0
70      0
80      0
90      0
100     1

if you histogram the data on the y-axis, there is no reason why this
should be still connected to the x-axis.

you have already a histogramm -- if you want to rebin, i guess you
should use "histogram" on the x-axis and weight with the y-data.

> H = load ( './histo3.dat')
> h =  H[:, 2]  # the third column
> 
> n, bins, patches = hist(h, 997, normed=0, log=0,
> facecolor='lightblue', alpha=0.75)

> 0 - 90000 --> on x axis
> Notice in the data file that x does not get further than 9.96e-02
> So the maximum should be 0.0996 and I am getting 90000

if you pass only the third column to hist, it is a bit unfair to expect
it to know the other two ;)


good luck,
sebastian.

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to