i have two histograms which i want to plot on the same canvas with the “same” option and i am getting a weird output. Only part of the first histogram is plotted (red one) while all points of the second one (blue) are plotted.
You can see in the attachment the first one (h1), the second one (h2) and the how are they superimposed.
This is the code i use:
TFile *f=new TFile(“myrootfile.root”);
TCanvas *c = new TCanvas(“c”,“c”,600,400);
leg = new TLegend(0.6,0.7,0.89,0.89);
Why are not the all points of the first histogram (red one) shown on the superimposed canvas?
Thank you very much.