29 using namespace ROOT::Experimental;
31 static constexpr
int npoints = 10;
32 double x[npoints] = { 0., 1., 2., 3., 4., 5., 6., 7., 8., 9. };
33 double y[npoints] = { .1, .2, .3, .4, .3, .2, .1, .2, .3, .4 };
34 auto gr = std::make_shared<TGraph>(npoints, x, y);
35 auto canvas = RCanvas::Create(
"v7 RCanvas showing a v6 TGraph");
36 canvas->Draw<RObjectDrawable>(gr,
"AL");
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; });