After drawing a matplotlib Text instance and then interactively panning, the resulting drawn text is clipped to the data window but not the surrounding bounding box. How can you clip the bounding box too? Here is the code to test the beheaviour:
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.plot([0,1],[0,1])
ax.text(.5, .5, 'text', clip_on=True, bbox={'facecolor':'red', 'clip_on':True})