Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Savefig shrinks image #8805

Closed
Closed
@skjerns

Description

@skjerns

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

import matplotlib.pyplot as plt
f = plt.Figure()
plt.plot([1,2,3])
f.savefig('test.png')

Actual outcome

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

  • Operating System: Win10 64
  • Matplotlib Version: 2.0.2
  • Python Version: 3.5.2
  • Spyder 3 using Qt5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions