The Wayback Machine - https://web.archive.org/web/20250611024233/https://github.com/matplotlib/matplotlib/issues/25768
Skip to content

[Bug]: Plot does not show unless it is resized #25768

Closed as not planned
Closed as not planned
@bjmarfito

Description

@bjmarfito

Bug summary

The plot generated from matplotlib.pyplot does not show automatically. Instead, I need to resize the window plot for it to show.

Code for reproduction

from matplotlib import pyplot as plt
import numpy as np
a = np.array([1, 7, 8, 12])
b = np.array([9, 6, 2, 5])
plt.figure(1, figsize=(8,4))
plt.axis([0,15,0,10])
plt.plot(a,b)
plt.show()

Actual outcome

actual

Expected outcome

expected

Additional information

No response

Operating system

macOS 13.3.1

Matplotlib Version

3.7.1

Matplotlib Backend

MacOSX

Python version

Python 3.11.3

Jupyter version

No response

Installation

None

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