Seems like a simple request but haven't had any luck so far. I thought it would be as simple as
import matplotlib.pyplot as plt fig = plt.plot([1,2], [1,2]) plt.grid(True) plt.axis('off')
but that will get rid of the grid as well.
To be clear, I do not want the labels, ticks or thick axis lines, just the grid.