From: Pierre H. <pie...@cr...> - 2013-04-16 13:16:54
|
Hi, Le 16/04/2013 12:14, Detlef Maurel (IKP) a écrit : > 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. Can you also send a minimal code that reproduces the bug. I just tried a hist(x, histtype='step') command, with x being a random vector and it works fine. best, Pierre |