I’m currently using JSROOT to display a histogram in a web browser. The histogram is generated by a small section of python code executed by the webserver and passed as a JSON string to a JSROOT.redraw call
hist = ROOT.TH2D("hist", blablablablabla)
for data in bufferToPlot:
hist.Fill( data, data )
jsonResp = ROOT.TBufferJSON.ConvertToJSON(hist)
return jsonResp #this goes back as POST response
The problem I’m facing is that when I request the first plot everything is fine, then I zoom the y axis, and unzoom it, then request another plot, which will have a different y axis range, but in the browser window the y axis is still the first plot one (see attachment).