We do not have a function to do this directly. What you can do:
TMarker *m = new TMarker(x,y,marker);
m->SetMarkerColor(..); //set all marker attributes
m->Draw();
TText *legend = new TText(x+epsi,y,"legend");
legend->SetTextColor(..); //set legend attributes
legend->Draw();
One could imagine a dedicated class TLegend
or/and specialized functions in TH1 and TGraph (the histo and graph
objects already know all attributes) to position a legend.
Comments ?
Rene Brun