Re: [ROOT] solid white marker with black border

From: Olivier Couet (Olivier.Couet@cern.ch)
Date: Mon Jun 30 2003 - 13:35:10 MEST


 Hi,

 The fill area attributes (like SetFillStyle, SetFillColor) etc ..) have 
no effect on the markers. Filled area and markers are different basic 
primitives and have different sets of attributes. To do what you requested 
you should use two different marker types, one filled and the other 
hollow, and superimpose them. The following macro gives you an example:

{
     TCanvas *c1 = new TCanvas("c1","Test",0,0,600,600);
     TF1 fun1("fun1","sin(x)",0,6.28);      
     fun1.SetMarkerColor(5);  
     fun1.SetMarkerSize(2.);
     fun1.SetMarkerStyle(29); 
     fun1.Draw("P"); 
     TF1 fun2("fun1","sin(x)",0,6.28);
     fun2.SetMarkerColor(1);
     fun2.SetMarkerSize(2.);
     fun2.SetMarkerStyle(30);
     fun2.Draw("P SAME");
}

 Cheers,         O.Couet

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet@cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7677155



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET