13void gr202_textmarkers() {
14 TCanvas *
c =
new TCanvas(
"c",
"A Simple Graph Example with Text",700,500);
19 gr->SetTitle(
"A Simple Graph Example with Text");
20 gr->SetMarkerStyle(20);
21 auto ex =
new TExec(
"ex",
"drawtext();");
22 gr->GetListOfFunctions()->Add(
ex);
44 auto g = (
TGraph*)
gPad->GetListOfPrimitives()->FindObject(
"Graph");
49 l.PaintText(
x,
y+0.2,
Form(
"(%4.2f,%4.2f)",
x,
y));
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
TExec is a utility class that can be used to execute a C++ command when some event happens in a pad.
void drawtext(double x, double y, int f, const char *s)
RVec< PromoteType< T > > sin(const RVec< T > &v)