33 static constexpr
int npoints = 4;
34 double x[npoints] = {0., 1., 2., 3.};
35 double y[npoints] = {.1, .2, .3, .4};
36 auto gr = std::make_shared<TGraph>(npoints,
x,
y);
38 canvas->Draw(
gr,
"AL");
47 [](
bool res) { std::cout <<
"First Update done = " << (res ?
"true" :
"false") << std::endl; });
53 [](
bool res) { std::cout <<
"Second Update done = " << (res ?
"true" :
"false") << std::endl; });
57 canvas->SaveAs(
"draw.png",
true,
58 [](
bool res) { std::cout <<
"Producing PNG done res = " << (res ?
"true" :
"false") << std::endl; });
62 canvas->SaveAs(
"draw.svg");
Namespace for new ROOT classes and functions.
#define R__LOAD_LIBRARY(LIBRARY)
static std::shared_ptr< TCanvas > Create(const std::string &title)