#include <iostream>
void draw_v6()
{
static constexpr int npoints = 10;
double x[npoints] = { 0., 1., 2., 3., 4., 5., 6., 7., 8., 9. };
double y[npoints] = { .1, .2, .3, .4, .3, .2, .1, .2, .3, .4 };
auto gr = std::make_shared<TGraph>(npoints,
x,
y);
auto canvas = RCanvas::Create("v7 RCanvas showing a v6 TGraph");
canvas->Show();
canvas->Update(false,
[](bool res) { std::cout << "First Update done = " << (res ? "true" : "false") << std::endl; });
canvas->Modified();
canvas->Update(false,
[](bool res) { std::cout << "Second Update done = " << (res ? "true" : "false") << std::endl; });
}
#define R__LOAD_LIBRARY(LIBRARY)
- Date
- 2017-06-02
- Warning
- This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
- Author
- Axel Naumann axel@.nosp@m.cern.nosp@m..ch
Definition in file draw_v6.cxx.