31 static constexpr
int npoints = 4;
32 double x[npoints] = {0., 1., 2., 3.};
33 double y[npoints] = {.1, .2, .3, .4};
34 auto gr = std::make_shared<TGraph>(npoints,
x,
y);
45 [](
bool res) { std::cout <<
"First Update done = " << (res ?
"true" :
"false") << std::endl; });
51 [](
bool res) { std::cout <<
"Second Update done = " << (res ?
"true" :
"false") << std::endl; });
55 canvas->SaveAs(
"draw.png",
true,
56 [](
bool res) { std::cout <<
"Producing PNG done res = " << (res ?
"true" :
"false") << std::endl; });
60 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)