Lines and Markers Disappear When Panning

I generate plots with lines, markers and text. When I pan the lines and markers will disappear off the sides of the plot window while the text is still visible. The problem is most apparent when the side of the window is changes. See the attached screenshots. Any ideas on how to prevent this from happening?


The lines are being clipped to the axes - the text is not.

Thanks, I turned the axes back on and see this. Is there a way to set the axis size to always be the full size of the plot window even after the plot window is resized?

ax = fig.add_axes([0, 0, 1, 1]) will make the axes always fill the figure.

This worked but I also had to set the limits of the axes with:

ax.set_xlim(xmin, xman)
ax.set_ylim(ymin, ymax)

Thank you.