flagProbDenstity removed
" gamma_options['interp_fraction'] * gamma_options['max_gamma'])\n",
"bins = np.linspace(0, gamma_options['max_gamma'], num_bins + 1)\n",
"\n",
- "flagProbDensity = True\n",
- "plt.hist(valid_gamma, bins, density=flagProbDensity)\n",
+ "plt.hist(valid_gamma, bins, density=True)\n",
+ "#if density is True, y value is probability density; otherwise, it is count in a bin\n",
"plt.xlim([0, gamma_options['max_gamma']])\n",
"plt.xlabel('gamma index')\n",
- "\n",
- "if flagProbDensity:\n",
"plt.ylabel('probability density')\n",
- "else:\n",
- " plt.ylabel('counts')\n",
" \n",
"pass_ratio = np.sum(valid_gamma <= 1) / len(valid_gamma)\n",
"\n",
