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 entrance to detector band (finer grain)
#
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):********
   4: 4.00e-04 -  5.00e-04 ( 125):******
   5: 5.00e-04 -  6.00e-04 (  99):*****
   6: 6.00e-04 -  7.00e-04 (  68):***
.
.
.
 932: 9.32e-02 -  9.33e-02 (   0):
 933: 9.33e-02 -  9.34e-02 (   1):*
---------------------------------------------

The * were meant to give an ascii impression of the histogram.

As you can see, I have 933 bins

First bin (MODE, since it's the most frequent one) ranges between
0.00e+00 -  1.00e-04 and has 2226 occurrences

Second bin ranges between 1.00e-04 -  2.00e-04 and has 482 occurrences

Third bin between 3.00e-04 -  4.00e-04 with 273 cases

etc etc

I am supposed to show this plot tomorrow and I cannot figure out how
to plot this with matplotlib

Any help in this desperate last minute panic would be enormously appreciated!

thanks

Pau

------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to