2 dimentional histogram graph generation