From: Detlef M. (IKP) <det...@ki...> - 2013-04-16 10:14:17
|
Hi all, there seems to be a bug in in pyplot.hist when using histtype="step". I am plotting the attached data to a histogram (see 1.png). In this case I set the limits on the y axis manually. When I don't do this (let the hist function choose the limits), I get the picture in the file 2.png. Only the highest bin is drawn. To be exact, ymin=second highest value, ymax=highest value. To solve this, I suggest the patch in the attachment. I also removed the for loop here, because I don't see why 0 height bins should be filtered out (but this is just a suggestion). cheers, Detlef Maurel |