|
From: John H. <jdh...@ac...> - 2005-10-14 13:57:49
|
>>>>> "John" == John Hunter <jdh...@ac...> writes:
>>>>> "W" == W Pessenhofer <w.p...@tu...> writes:
W> Hi, I want to generate histograms with fixed bars e.g. first
W> one from 55 to 56, the second one from 56 to 57 and so on. What
W> I found out so far, is that the hist command takes the array
W> and defines the bar width automatically.
W> Anyone, how to get fixed bars ?
John> How about replacing the hist function in axes.py with
John> something like
Oops
if width is not None: width = 0.9*(bins[1]-bins[0])
^^^
should read
if width is None: width = 0.9*(bins[1]-bins[0])
JDH
|