Closed redeboer closed 3 months ago
In order to create 2D histograms interactive in #31, you need to create the 2D histograms with JAX (or NumPy) instead of with Matplotlib, because that is faster on slider changes. This means replacing the call to matplotlib.pyplot.hist2d() with:
matplotlib.pyplot.hist2d()
jax.numpy.histogram2d()
pcolormesh()
There are no examples yet of how to do this on compwa.github.io/reports, but you can have a look at this answer on StackOverflow.
In order to create 2D histograms interactive in #31, you need to create the 2D histograms with JAX (or NumPy) instead of with Matplotlib, because that is faster on slider changes. This means replacing the call to
matplotlib.pyplot.hist2d()
with:jax.numpy.histogram2d()
can computes the bin valuespcolormesh()
.There are no examples yet of how to do this on compwa.github.io/reports, but you can have a look at this answer on StackOverflow.