User Tools

Site Tools


root:padlayouts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
root:padlayouts [2010/11/09 16:57]
nchiap
root:padlayouts [2010/11/09 16:59] (current)
nchiap
Line 2: Line 2:
  
 ===== Two Histograms next to each other (vertically) ===== ===== Two Histograms next to each other (vertically) =====
-{{:​root:​plot-15-m34.png|}}+{{:​root:​plot-15-m34.png?300|}}
 <code C++> <code C++>
         TCanvas *canvas = new TCanvas("​canvas","​canvas"​);​         TCanvas *canvas = new TCanvas("​canvas","​canvas"​);​
Line 18: Line 18:
         hist1->​GetYaxis()->​SetTitleSize(.05);​         hist1->​GetYaxis()->​SetTitleSize(.05);​
         hist1->​GetYaxis()->​SetTitleOffset(.6);​         hist1->​GetYaxis()->​SetTitleOffset(.6);​
-        hist1->​GetYaxis()->​SetTitle("​upperPlot");+        hist1->​GetYaxis()->​SetTitle("​events");
         hist1->​Draw("​X+"​);​         hist1->​Draw("​X+"​);​
  
Line 37: Line 37:
         hist2->​GetYaxis()->​SetTitleSize(.12);​         hist2->​GetYaxis()->​SetTitleSize(.12);​
         hist2->​GetYaxis()->​SetTitleOffset(.2);​         hist2->​GetYaxis()->​SetTitleOffset(.2);​
-        hist2->​GetYaxis()->​SetTitle("​lowerPlot");+        hist2->​GetYaxis()->​SetTitle("​k-Factors");
         hist2->​GetXaxis()->​SetLabelSize(.1);​         hist2->​GetXaxis()->​SetLabelSize(.1);​
         hist2->​GetXaxis()->​SetTitleOffset(.8);​         hist2->​GetXaxis()->​SetTitleOffset(.8);​
root/padlayouts.txt ยท Last modified: 2010/11/09 16:59 by nchiap