You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is time glitch between web canvas and normal canvas.
Web canvas requires some time to be started - and during this time one get histogram fill to the end.
If one do c1.SaveAs("c1.png") and c2.SaveAs("c2.png") one get expected values.
Problem is extra gPad->Modified() call when new TCanvas is created.
In the macro it marks first canvas always as modified. And at the end of macro execution both canvas are updated to latest histogram content. I create PR #15518 which fixes such bogus behavior. After PR merged one can do:
TCanvas c1;
TH1F h("h","h", 64, -4,4);
h.FillRandom("gaus");
h.Draw();
c1.Update(); // ensures histogram displayed as exists at this point
TCanvas c2;
h.FillRandom("gaus",10000);
h.Draw();
I do not understand what is going on. Both code snippets with the tip of the master show two identical histograms with 15k entries. The changes had no effect in either case it seems.
Check duplicate issues.
Description
There is a difference in the behaviour of the 2 graphics backends, when drawing on 2 canvases an updated historgam.
Reproducer
Classic graphics: One histo with 5k entries and one with 15k entries
Web graphics: Two histos with 15k entries
ROOT version
master
Installation method
sources
Operating system
MacOS
Additional context
No response
The text was updated successfully, but these errors were encountered: