Skip to content
Snippets Groups Projects
Commit 0c9b7474 authored by Sergey Linev's avatar Sergey Linev Committed by Philippe Canal
Browse files

webgui: update draw_mt tutorial - now two histograms draw and update

works
parent 655edb35
No related branches found
No related tags found
No related merge requests found
......@@ -54,8 +54,7 @@ void draw_canvas(const std::string &title, RColor col)
// Create a canvas to be displayed.
auto canvas = RCanvas::Create(title);
canvas->Draw(pHist)->SetLineColor(col);
// canvas->Draw(pHist)->SetLineColor(RColor::kRed);
// canvas->Draw(pHist2)->SetLineColor(RColor::kBlue);
canvas->Draw(pHist2)->SetLineColor(RColor::kBlue);
canvas->Show();
......@@ -67,11 +66,10 @@ void draw_canvas(const std::string &title, RColor col)
pHist2->Fill(py+2);
}
// std::this_thread::sleep_for(std::chrono::milliseconds(500));
canvas->Modified();
canvas->Update();
// std::this_thread::sleep_for(std::chrono::milliseconds(500));
canvas->Run(0.5); // let run canvas code for next 0.5 seconds
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment