Hi Maria, I cannot reproduce your problem. I cannot use your macro as it contains empty histograms. I tested a similar code with real histograms and it works OK. There are a few changes between 2.22/09 and the current version regarding clipping in the pad, but a priori nothing that is directly related with the C option. Please send me a short macro with your histograms. I can check if the symptom persists with the latest version. Rene Brun Maria_Roco wrote: > > Hello, > > I want to draw a smooth line through the histogram points > but its not working for me (Root v2_23_09). > I only get the points without the line using the code below. > By removing the SetMinimum and SetMaximum commands- then the line appears. > Has anyone come across this and got it to work? > > Thanks. > Maria > > TH1F *h100=new TH1F("h100","MC z-vtx",40,-100.,100.); > TH1F *h101=new TH1F("h101","MC z-vtx",40,-100.,100.); > TH1F *h102=new TH1F("h102","z-vtx efficiency",40,-100.,100.); > > h102->Divide(h101,h100); > h102->SetMarkerStyle(29); > h102->SetMarkerSize(1); > h102->SetMarkerColor(2); > > h102->SetMinimum(0.78); > h102->SetMaximum(1.05); > > h102->Draw("P"); > h102->Draw("CSame");
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:18 MET