Skip to content
Snippets Groups Projects
Commit b79de123 authored by Tooba Ali's avatar Tooba Ali
Browse files

change plot title in benchmarks/dis/analysis/kinematics_correlations.py

parent d548a7d6
No related branches found
No related tags found
1 merge request!202construct kinematic coverage plot and include Sigma and eSigma correlation in kinematics_correlation.py
...@@ -88,7 +88,7 @@ def Q2correlation(minq2,method): #minq2 can be 1,10,100, or 1000; method can be ...@@ -88,7 +88,7 @@ def Q2correlation(minq2,method): #minq2 can be 1,10,100, or 1000; method can be
fig.set_figheight(11) fig.set_figheight(11)
plt.xlabel('$Q^2$ [$GeV^2$] Truth') plt.xlabel('$Q^2$ [$GeV^2$] Truth')
plt.ylabel('$Q^2$ [$GeV^2$] {}'.format(method_dict['{}'.format(method)])) plt.ylabel('$Q^2$ [$GeV^2$] {}'.format(method_dict['{}'.format(method)]))
plt.title('{} $Q^2$ correlation {}x{} $minQ^2=${}$GeV^2$'.format(method_dict['{}'.format(method)],k,p,minq2)) plt.title('{} $Q^2$ correlation {}x{} $minQ^2=${}$GeV^2$\n {} events DETECTOR_CONFIG: {} '.format(method_dict['{}'.format(method)],k,p,minq2,Nevents,Dconfig))
plt.savefig(os.path.join(r_path, 'Q2_correlation_%s_%s.png' %(method,config))) plt.savefig(os.path.join(r_path, 'Q2_correlation_%s_%s.png' %(method,config)))
...@@ -146,7 +146,7 @@ def Xcorrelation(minq2,method): #minq2 can be 1,10,100, or 1000; method can be ' ...@@ -146,7 +146,7 @@ def Xcorrelation(minq2,method): #minq2 can be 1,10,100, or 1000; method can be '
fig.set_figheight(11) fig.set_figheight(11)
plt.xlabel('x Truth') plt.xlabel('x Truth')
plt.ylabel('$x$ {}'.format(method_dict['{}'.format(method)])) plt.ylabel('$x$ {}'.format(method_dict['{}'.format(method)]))
plt.title('{} $x$ correlation {}x{} $minQ^2=${}$GeV^2$'.format(method_dict['{}'.format(method)],k,p,minq2)) plt.title('{} $x$ correlation {}x{} $minQ^2=${}$GeV^2$\n {} events DETECTOR_CONFIG: {} '.format(method_dict['{}'.format(method)],k,p,minq2,Nevents,Dconfig))
plt.savefig(os.path.join(r_path, 'x_correlation_%s_%s.png' %(method,config))) plt.savefig(os.path.join(r_path, 'x_correlation_%s_%s.png' %(method,config)))
...@@ -223,7 +223,7 @@ ax6.set_title('Jacquet Blondel') ...@@ -223,7 +223,7 @@ ax6.set_title('Jacquet Blondel')
fig.set_figwidth(30) fig.set_figwidth(30)
fig.set_figheight(20) fig.set_figheight(20)
plt.title('Kinematic Coverage {}x{} $minQ^2=${}$GeV^2$'.format(k,p,minq2)) plt.title('Kinematic Coverage {}x{} $minQ^2=${}$GeV^2$\n {} events DETECTOR_CONFIG: {} '.format(k,p,minq2,Nevents,Dconfig))
plt.savefig(os.path.join(r_path, 'kinematic_coverage_%s.png' %(method,config))) plt.savefig(os.path.join(r_path, 'kinematic_coverage_%s.png' %(config)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment