@@ -580,7 +580,8 @@ def plot_result(self, suffix="", title=""):
580580 hist_raw_yield_sum .Draw ("histsame" )
581581 tex = ROOT .TLatex ()
582582 tex .SetTextSize (0.04 )
583- tex .DrawLatexNDC (0.05 , 0.95 , title )
583+ tex .SetTextAlign (31 )
584+ tex .DrawLatexNDC (0.95 , 0.95 , title )
584585 canvas .Modified ()
585586 canvas .Update ()
586587
@@ -651,7 +652,8 @@ def plot_cov_matrix(self, correlated=True, suffix="", title=""):
651652 hist_corr_matrix .Draw ("colz" )
652653 tex = ROOT .TLatex ()
653654 tex .SetTextSize (0.04 )
654- tex .DrawLatexNDC (0.05 , 0.95 , title )
655+ tex .SetTextAlign (31 )
656+ tex .DrawLatexNDC (0.95 , 0.95 , title )
655657 canvas .Modified ()
656658 canvas .Update ()
657659
@@ -743,7 +745,8 @@ def plot_efficiencies(self, suffix="", title=""):
743745 leg .Draw ()
744746 tex = ROOT .TLatex ()
745747 tex .SetTextSize (0.04 )
746- tex .DrawLatexNDC (0.05 , 0.95 , title )
748+ tex .SetTextAlign (31 )
749+ tex .DrawLatexNDC (0.95 , 0.95 , title )
747750 canvas .Modified ()
748751 canvas .Update ()
749752
@@ -828,7 +831,8 @@ def plot_fractions(self, suffix="", title=""):
828831 leg .Draw ()
829832 tex = ROOT .TLatex ()
830833 tex .SetTextSize (0.04 )
831- tex .DrawLatexNDC (0.05 , 0.95 , title )
834+ tex .SetTextAlign (31 )
835+ tex .DrawLatexNDC (0.95 , 0.95 , title )
832836 canvas .Modified ()
833837 canvas .Update ()
834838
@@ -905,7 +909,8 @@ def plot_uncertainties(self, suffix="", title=""):
905909 hist_residual_unc .Draw ("histsame" )
906910 tex = ROOT .TLatex ()
907911 tex .SetTextSize (0.04 )
908- tex .DrawLatexNDC (0.05 , 0.95 , title )
912+ tex .SetTextAlign (31 )
913+ tex .DrawLatexNDC (0.95 , 0.95 , title )
909914 canvas .Modified ()
910915 canvas .Update ()
911916
0 commit comments