I doubt this is exactly 2 data blocks, but it looks pretty close:
import matplotlib.pyplot as plt r = plt.Rectangle((2,2), 10, 10, fill = False) plt.gca().add_patch(r) ymin, ymax = (0, 14) plt.axis(xmin = 0, xmax = 14, ymin=ymin, ymax=ymax)

To make this work when resizing, you need to add a callback.
klimaat
source share