Question: I am drawing a circle using the following command:
TEllipse *circle3 = new TEllipse(1.4,1.4,1.27,1.27);
circle3->SetFillColorAlpha(0,0.95);
circle3->Draw(“same”);
The circle looks fine with an outline in black, but I would like a transparent fill of the circle so that I can view events that make it in the circle. I’ve attached a plot that contains this circle on each panel. I would like to see the events that make it inside this circle.
Note the option “SAME” does not exist for TEllipse::Draw()
{
auto c = new TCanvas();
c->DrawFrame(-5,-5,5,5);
auto t = new TText(0.,1.,"text under the ellipse");
t->Draw();
TEllipse *circle = new TEllipse(1.4,1.4,1.27,1.27); // empty ellipse not hiding the text
circle->SetFillStyle(0);
circle->Draw();
}
Thanks for your replies. I tried using the circle->SetFillColor(0); line in my code, and I still end up with the same problem. I’ve attached the code to this message so that you can see how I implement the logic. If you would like the Root files as well, please let me know.