scikit-hep/histbook

[feature request]: 2D plots

Closed this issue · 3 comments

Following up on the comment made on https://stackoverflow.com/questions/50820894/filling-numpy-arrays-slower-than-for-loop-h-fill-vs-h-fill-numpy:
It would be good to replicate 2D plots that are common in HEP like the on http://histogrammar.org/docs/tutorials/python-matplotlib/
image

Vega-lite has a scatter plot as well as a heatmap (and table binned heatmap):

I was just about to create a request for 2D plots ... :)
So let me second this one.

It's in the enhancements branch. Try it out and let me know if it's missing anything.

I haven't done the 2D export to ROOT yet, though.

Oh, the new method is Hist.heatmap() or Hist.heatmap("x", "y"). The documentation won't propagate through to readthedocs until I merge enhancements to master.