Closed imandr closed 6 years ago
It should be stateless: everything about the histogram is recomputed each time (because the user might change some of the properties of the step
or other objects).
This happened because of a subtle bug: you pass in yscale={"type": "log"}
and I attached it to the plot, then modified it in place to add the y log domain. Since you're not calling step
again with a fresh yscale
, I find an explicit domain on the yscale
I thought I got from you and let the user override what I have computed for the new y log domain.
Now I defensively copy.deepcopy
the user arguments.
Showing dynamically updated histograms, I have been using this feature of histbook, which I found very useful, quite cool and "pythonic":
The left histogram looks good, while the right (logscale) histogram would not update its y axis scale to accommodate for new counts