@@ -326,7 +326,7 @@ def make_plots( histograms, category, output_folder, histname, show_ratio = True
326326
327327 axes .minorticks_on ()
328328
329- plt .ylabel ( r'$\frac{1}{\sigma} \frac{d\sigma}{d' + variables_latex [variable ] + '} \left[\mathrm{GeV}^{-1} \\ right] $' , CMS .y_axis_title )
329+ plt .ylabel ( r'$\frac{1}{\sigma} \frac{d\sigma}{d' + variables_latex [variable ] + '}$' , CMS .y_axis_title )
330330 plt .tick_params ( ** CMS .axis_label_major )
331331 plt .tick_params ( ** CMS .axis_label_minor )
332332
@@ -342,7 +342,7 @@ def make_plots( histograms, category, output_folder, histname, show_ratio = True
342342
343343 for key , hist in sorted ( histograms .iteritems () ):
344344 if not 'unfolded' in key and not 'measured' in key :
345- hist .linewidth = 2
345+ hist .linewidth = 4
346346 # setting colours
347347 if 'POWHEG_PYTHIA' in key or 'matchingdown' in key :
348348 hist .linestyle = 'longdashdot'
@@ -415,7 +415,7 @@ def make_plots( histograms, category, output_folder, histname, show_ratio = True
415415 plt .ylabel ( '$\\ frac{\\ textrm{pred.}}{\\ textrm{data}}$' , CMS .y_axis_title )
416416 ax1 .yaxis .set_label_coords (- 0.115 , 0.8 )
417417 #draw a horizontal line at y=1 for data
418- plt .axhline (y = 1 , color = 'black' , linewidth = 1 )
418+ plt .axhline (y = 1 , color = 'black' , linewidth = 2 )
419419
420420 for key , hist in sorted ( histograms .iteritems () ):
421421 if not 'unfolded' in key and not 'measured' in key :
@@ -437,14 +437,15 @@ def make_plots( histograms, category, output_folder, histname, show_ratio = True
437437 syst_errors = graph_to_value_errors_tuplelist (hist_data_with_systematics )
438438 syst_lower .SetBinContent ( bin_i , 1 - syst_errors [bin_i - 1 ][1 ]/ syst_errors [bin_i - 1 ][0 ] )
439439 syst_upper .SetBinContent ( bin_i , 1 + syst_errors [bin_i - 1 ][2 ]/ syst_errors [bin_i - 1 ][0 ] )
440-
441440 if category == 'central' :
442- rplt .fill_between ( syst_lower , syst_upper , ax1 , facecolor = 'yellow' , alpha = 0.5 )
441+ rplt .fill_between ( syst_lower , syst_upper , ax1 ,
442+ color = 'yellow' , alpha = 0.5 )
443443
444- rplt .fill_between ( stat_upper , stat_lower , ax1 , facecolor = '0.75' , alpha = 0.5 )
444+ rplt .fill_between ( stat_upper , stat_lower , ax1 , color = '0.75' ,
445+ alpha = 0.5 )
445446 # legend for ratio plot
446- p_stat = mpatches .Patch (color = '0.75' , label = 'Stat.' , alpha = 0.5 )
447- p_stat_and_syst = mpatches .Patch (color = 'yellow' , label = r'Stat. $\oplus$ Syst.' , alpha = 0.5 )
447+ p_stat = mpatches .Patch (facecolor = '0.75' , label = 'Stat.' ,alpha = 0.5 , edgecolor = 'black' )
448+ p_stat_and_syst = mpatches .Patch (facecolor = 'yellow' , label = r'Stat. $\oplus$ Syst.' , alpha = 0.5 , edgecolor = 'black' )
448449 l1 = ax1 .legend (handles = [p_stat ], loc = 'upper left' ,
449450 frameon = False , prop = {'size' :26 })
450451
@@ -498,7 +499,7 @@ def plot_central_and_systematics( channel, systematics, exclude = [], suffix = '
498499
499500
500501 plt .xlabel ( '$%s$ [GeV]' % variables_latex [variable ], CMS .x_axis_title )
501- plt .ylabel ( r'$\frac{1}{\sigma} \frac{d\sigma}{d' + variables_latex [variable ] + '} \left[\mathrm{GeV}^{-1} \\ right] $' , CMS .y_axis_title )
502+ plt .ylabel ( r'$\frac{1}{\sigma} \frac{d\sigma}{d' + variables_latex [variable ] + '}$' , CMS .y_axis_title )
502503 plt .tick_params ( ** CMS .axis_label_major )
503504 plt .tick_params ( ** CMS .axis_label_minor )
504505
0 commit comments