Thanks Jim for your response. I will use constant bin width. One more question: Is there anyway I can 2d or 3d histogram calculation/count? With regards, Abu