Hi Rustam, TH1 is derived from TAttLine which is 1=solid, 2=dash, 3=dot-dot, 4=dash-dot No user defined style is available (in principal it's possible to add to TAttLine class) I'm just curious why do you not use different colors and line widths? Regards. Valeriy > Hello! > > I was trying to create a new LineStyle with > TGX11::SetLineType(..) function. > I need to use various dash length for different histograms > and for some reason I can not do that. > Could anybody help me, please? > > > > Int_t ds[4] = {5,3,1,3}; > > void settype() > { > TH1F *Data = new TH1F("Data","Gaussian",100,-0.5,0.5); > for (Int_t i=0;i<5000;i++) Data->Fill(gRandom->Gaus(0,0.05)); > Data->SetMarkerStyle(21); > Data->SetMarkerSize(0.8); > //Data->SetLineStyle(4); > Data->TGX11::SetLineType(4,ds); > Data->SetLineWidth(2); > Data->Draw(); > } > > > > Thank you, > > Rustam > > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET