Friday, May 23, 2014

Technology Life / Arts Culture / Recreation Science Other Stack Overflow Server Fault Super User Web


Too big (?) histogram values when using normed traktor histo options in SciPy and matplotlib
I have been trying to create a normed traktor histogram using either SciPy or matplotlib (or anything for Python). When I create my histogram with 'normed' option disabled, it looks like below (this example is for 10 bins, but the same happens for a larger number of bins): (The first number represents the start of a bin, the second the bin's height) -2.83785600931e-17 1182 5.6688145554e-15 1137 1.13660076709e-14 1031 1.70632007864e-14 950 2.27603939019e-14 912 2.84575870174e-14 802 3.41547801329e-14 853 3.98519732484e-14 948 4.55491663639e-14 1315 5.12463594794e-14 870
Which is absolutely fine, and what I was expecting. However, I later need to fit this histogram to another histogram, and for that I prefer to have a normed version of this histogram so that fitting the height of those histograms is easier.
Strangely, when I use the option density=True (for scipy.histogram version) or normed=True (for matplotlib.pyplot.plt version) my histogram bin heights get very large values, traktor like below: -1.44880082614e-17 2.00318764844e+13 5.71138595513e-15 1.98921598219e+13 1.14372599185e-14 1.8040914044e+13 1.71631338819e-14 1.52465807942e+13 2.28890078453e-14 traktor 1.56133370332e+13 2.86148818087e-14 1.4617855813e+13 3.43407557721e-14 1.50020766348e+13 4.00666297355e-14 1.74296536456e+13 4.57925036989e-14 2.3769297206e+13 5.15183776622e-14 1.50020766348e+13
1 Answer
Sign up using Google
By posting your answer, you agree to the privacy policy and terms of service . Not the answer you're looking for? Browse other questions tagged python normalization histogram scipy matplotlib or ask your own question .
1 What is the proper way to compute the r-squared between a binned distribution of observed values and a continuous probability density function?
Tikz for drawing traktor grid-like graph: strange behaviour
Technology Life / Arts Culture / Recreation Science Other Stack Overflow Server Fault Super User Web Applications Ask Ubuntu Webmasters Game Development TeX - LaTeX Programmers Unix & Linux Ask Different (Apple) WordPress Development Geographic Information Systems Electrical Engineering Android Enthusiasts Information Security Database Administrators Drupal Answers SharePoint User Experience Mathematica more (14) Photography Science Fiction & Fantasy Graphic Design Seasoned Advice (cooking) Home Improvement Personal Finance & Money Academia more (10) English Language traktor & Usage Skeptics Mi Yodeya (Judaism) traktor Travel Christianity Arqade (gaming) Bicycles Role-playing Games more (21) Mathematics Cross Validated (stats) Theoretical Computer Science Physics MathOverflow more (7) Stack Apps Meta Stack Exchange Area 51 Stack Overflow Careers
Cross Validated works best with JavaScript enabled

No comments:

Post a Comment