I am working on some graph stuffs and stuck at a point.
I am trying to plot a histogram using simple :
import matplotlib.pyplot as plt
but i want to know
what is the value of a particular bar in histogram and also want to
print in on output image along with the bars ( either at top of bar or
at bottom)2) How to give input of 2 types of dataset in
single hist() command , so that i can compare 2 different dataset side
by side on my output image. ( i dont want it on top of each other as
given by the command histtype: [ ‘barstacked’] and also i read some example in matplotlib site, but they are for random numbers : something like this:
x0 = mu + sigma*P.randn(10000) x1 = mu + sigma*P.randn(7000) x2 = mu + sigma*P.randn(3000) P.figure() n, bins, patches = P.hist( [x0,x1,x2], 10, histtype='bar')
but i need this comparision for some dataset.