TArrow and a marker

From: Mario Kadastik <mario.kadastik_at_cern.ch>
Date: Mon, 21 Feb 2011 09:54:08 +0200


Hi,

I'm trying to use a TArrow to mark a location and also show this TArrow in the legend, but no matter how I create the Arrow, in the TLegend it shows an ugly black square marker for the line style as well. And I can't see a way to disable that marker as TArrow doesn't have SetMarkerStyle etc attributes.

	TArrow *tev = new TArrow(tevlim,2*max,tevlim,1,0.02,">");
	tev->SetLineStyle(9);
	tev->SetLineColor(kPink);
	tev->SetFillColor(kWhite);
	tev->SetLineWidth(3);
	tev->Draw();

	TLegend *leg = new TLegend(0.65,0.17,0.97,0.45);
	leg->AddEntry(tev,"Tevatron exclusion");
	leg->SetFillColor(kWhite);
	leg->Draw();

Ideas are welcome...

Mario Kadastik, PhD
Researcher

---
  "Physics is like sex, sure it may have practical reasons, but that's not why we do it" 
     -- Richard P. Feynman
Received on Mon Feb 21 2011 - 08:54:18 CET

This archive was generated by hypermail 2.2.0 : Mon Feb 21 2011 - 11:50:01 CET