34 static constexpr int npoints = 10;
35 double x[npoints] = {1., 2., 3., 4., 5., 6., 7., 8., 9., 10.};
36 double y[npoints] = {.1, .2, .3, .2, .1, .2, .3, .2, .1, .2};
48 [](
bool res) { std::cout <<
"First sync update done = " << (res ?
"true" :
"false") << std::endl; });
51 gr->SetPoint(1, 1., .3);
52 gr->SetPoint(3, 3., .1);
53 gr->SetPoint(5, 5., .3);
54 gr->SetPoint(7, 7., .1);
55 gr->SetPoint(9, 9., .3);
62 true, [](
bool res) { std::cout <<
"Second async update done = " << (res ?
"true" :
"false") << std::endl; });
64 std::cout <<
"This message appear normally before second async update" << std::endl;
static std::shared_ptr< RCanvas > Create(const std::string &title)
Create new canvas instance.
Provides v7 drawing facilities for TObject types (TGraph, TH1, TH2, etc).
Namespace for ROOT features in testing.