added plot2dhist function