we are trying to visualize TCanvases via JSROOT. However, only a blank canvas is displayed. By right-clicking and save as XY.png the content can actually be visualized in the png file.
Hm… ok very good point you raise. Indeed if I do the same it is also blank.
Explaining the bigger picture a bit: We have a process running that stores an object as I posted before once per minute. This can then be visualized with JSROOT on a webpage. When the process is started the first object is completely fine. It is displayed in JSROOT and when it is downloaded one can also draw it as you tried. The following objects are then like the file I posted. When the process is restarted, the first object is fine again but the following are not.
So it seems that something strange is happening to the objects after the first one is stored. But tbh I now wonder even more why saving the TPad to png is solving the display problem.
Sorry for making a fuss, I will investigate deeper because the problem could still be on our side. Any hints or ideas on how to debug are of course very welcome.
thanks a lot for pointing this out! I guess I am simply missing a call to TCanvas::Clear() before writing to the canvas.
Now I wonder why the following TPads after the first one are empty. They should also contain data. But that is a different topic so don’t be bothered with that.