Closed malhotrachetan closed 7 years ago
Hey everyone, I was going through the: 'Making plots with matplotlib' part of python docs and in the section: 'First Histogram'
it throws an error:
I guess in data = [random.random() for i in xrange(2000)], data should be declared as: data = [random.random() for i in hg.xrange(2000)]
Plus after executing the ditto code from docs, the plot looks something likes this:
instead of:
Hey everyone, I was going through the: 'Making plots with matplotlib' part of python docs and in the section: 'First Histogram'
it throws an error:
I guess in data = [random.random() for i in xrange(2000)], data should be declared as: data = [random.random() for i in hg.xrange(2000)]
Plus after executing the ditto code from docs, the plot looks something likes this:
instead of: