- If you are setting the "xlim" and "ylim" properties and want the zoom to be reset to these values, you can add the following code to the end of your plotting code:
- This issue can also be avoided by fitting the axes box tightly around the data by setting the axis limits equal to the range of the data using the below code: