Commit 4b9d4196fd7a8975a8b5b02b39a6ed72ed7d0d6b

Authored by Jürgen Knödlseder
1 parent 534b26f1

Add comment

Showing 1 changed file with 2 additions and 1 deletions
examples/show_spectrum.py
@@ -202,12 +202,13 @@ def plot_dloglike(spec): @@ -202,12 +202,13 @@ def plot_dloglike(spec):
202 202
203 # Plot the likelihood profiles 203 # Plot the likelihood profiles
204 plt.pcolormesh(np.array(spec['engs_scan']), y_bounds, 204 plt.pcolormesh(np.array(spec['engs_scan']), y_bounds,
205 - np.array(dll_hist), vmin=-10.0, vmax=0.0, 205 + np.array(dll_hist), vmin=-10.0, vmax=0.0,
206 cmap='Reds', alpha=0.9) 206 cmap='Reds', alpha=0.9)
207 cbar = plt.colorbar() 207 cbar = plt.colorbar()
208 cbar.set_label(r'$\Delta$ log-likelihood') 208 cbar.set_label(r'$\Delta$ log-likelihood')
209 plt.grid() 209 plt.grid()
210 210
  211 + # Return
211 return 212 return
212 213
213 214