I'm trying to do an interpolation of some points on a grid with mplhep
v0.3.21
for an analysis at the moment. However, if I try to use matplotlib.pyplot.contourf
with log spaces color levels using mplhep
will cause a warning along the lines of
# Locator attempting to generate 18497 ticks ([0.15405694150420948, ..., 999.9912470033628]), which exceeds Locator.MAXTICKS (1000).
and it will then hang (I don't know if it resolves, as I kill it with a KeyboardInterrupt
when it is clear it won't finish in a second or so).
If I comment out the use of plt.style.use(mplhep.style.ATLAS)
(this happens with mplhep.style.ROOT
too) then things proceed as normal and produce the plot in example.py
.
What is interesting, is if I attempt to get around this by using pcolormesh
and then contour
to create a similar-ish type of plot there is no issue and things work as expected as can be seen in example_pmesh.py
.
Do you have any idea why this could be happening, and if there is a way to avoid it or fix it?