Skip to content

[Bug]: errors using pycharm backend #25227

Closed
@gmyMing

Description

@gmyMing

Bug summary

Failed to use matplotlib.pylot on windows

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

x=np.linspace(-1,1,50)
y1=2*x+1
y2=x**2
plt.figure()
plt.plot(x,y1)
plt.show()

Actual outcome

image

Expected outcome

it should generate a line figure

Additional information

all simple plot programs I ran failed
python version is 3.10.0
matplotlib is 3.7.0
I ran this program on windows 10.
I installed matplotlib through the pycharm interpreter.

Operating system

windows

Matplotlib Version

3.7.0

Matplotlib Backend

No response

Python version

No response

Jupyter version

3.7.0

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions