implemented plotting of 3d histogram