RooPlot* mJpsi3686frame = mJpsi3686.frame();
realdata.plotOn(mJpsi3686frame);
summJpsi3686.plotOn(mJpsi3686frame,LineColor(4));
summJpsi3686.plotOn(mJpsi3686frame,Components(key1),LineStyle(4),LineColor(2), LineWidth(3));
summJpsi3686.plotOn(mJpsi3686frame,Components(key2),LineStyle(2),LineColor(7), LineWidth(3));
mJpsi3686frame->SetAxisRange (3.55,3.75,"X");
mJpsi3686frame->SetNdivisions (50, "X");//????
mJpsi3686frame -> Draw();
It seems like “mJpsi3686frame->SetNdivisions (50, “X”);” doesn’t work and the number of bins is still 100. So how can I set the number of bins into another one?
Thank you very much,
Dyson