Re: [ROOT] color palette for PolyMarker ?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Jun 16 2003 - 11:46:50 MEST


Hi Nami,

You can use the palette 1 that defines colors [51->100], eg
  TPolyMaker *pm; //your polymarker created and set
  gStyle->SetPalette(1);
  pm->SetMarkerColor(color); //with color between 51 and 100
  pm->Draw();

Rene Brun

MOWLAVI Nami wrote:
> 
> Hello,
> 
> I want to display a set of filled squares with the PolyMarker class at
> positions (x[n],y[n]), and want to set the color taken in a 'rainbow' palette
> (the 'pretty' palette as defined in the user manual) according to the value
> (double) in a third vector v[n].
> 
> This is similar to plotting a 2-D histogram, but I don't need all the machinery
> of TH2.
> 
> Is it possible to define a 'pretty' color for the Marker Attribute of
> PolyMarker? (am using root version 3.03 on Sun solaris 8)
> 
> Thanks for your advice.
> 
> Nami Mowlavi



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