Skip to content

Small figsize yield wrong dimensions #2716

@ibell

Description

@ibell

I am having issues with small figures that I am trying to generate. Here is a minimal working example that demonstrates the issue:

import matplotlib.pyplot as plt
fig = plt.figure(figsize=(0.5,0.5))
plt.savefig('small.png',dpi = 100)

which yields a file small.png with dimensions 291 x 50 (wxh) so the height is being properly handled, but the width is not. This seems to be a bug. I seem to recall having similar issues with large figures, I can post another mwe for large figsize too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GUI: wxstatus: closed as inactiveIssues closed by the "Stale" Github Action. Please comment on any you think should still be open.status: inactiveMarked by the “Stale” Github Action

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy