Diamond

Draw a diamond.

Author: Olivier Couet
This notebook tutorial was automatically generated with ROOTBOOK-izer from the macro found in the ROOT repository on Sunday, July 05, 2020 at 07:29 AM.

In [1]:
TCanvas *c = new TCanvas("c");
TDiamond *d = new TDiamond(.05,.1,.95,.8);

d->AddText("A TDiamond can contain any text.");

d->Draw();
return c;

Draw all canvases

In [2]:
gROOT->GetListOfCanvases()->Draw()