Hexpanda The script puts the pixels of the original image into a pandas DataFrame draws a random sample creates a hexbin plot There is a bit of data wrangling done, mostly messing with a pandas MultiIndex. .. literalinclude:: hexpanda.py