Draw a grid for a graph (python)

@couet its seems to have no afffect on the pitcure. How would you suggest to combine you’re code with mine?

how does SetGrid knows which histogram to pick?