<!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** When I save a figure my canvas is smaller as before. As I need to extract images from an interactive pyplot I cannot align them anymore afterwards. **Code for reproduction** <!--A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required--> ```python import matplotlib.pyplot as plt f = plt.Figure() plt.plot([1,2,3]) f.savefig('test.png') ``` **Actual outcome** <!--The output produced by the above code, which may be a screenshot, console output, etc.--> Figure gets saved, figure shrinks. Subsequent figure is then a tiny bit smaller **Expected outcome** The figure gets saved, the canvas or figure size stays untouched. **Matplotlib version** <!--Please specify your platform and versions of the relevant libraries you are using:--> * Operating System: Win10 64 * Matplotlib Version: 2.0.2 * Python Version: 3.5.2 * Spyder 3 using Qt5 <!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--> <!--If you installed from conda, please specify which channel you used if not the default-->
Activity
tacaswell commentedon Jun 26, 2017
Suspect this is a duplicate of #8736
skjerns commentedon Jun 27, 2017
Indeed, the fix suggested in #8736 did fix the problem, but only if I do not set a costum DPI.
tacaswell commentedon Jun 27, 2017
closing in favor of #8736