Skip to content

[Bug]: errors using pycharm backend #25227

Closed

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

Activity

  1. anntzer commented on Feb 16, 2023

    @anntzer
    Contributor

    Please indicate your version of pycharm.

  2. gmyMing commented on Feb 17, 2023

    @gmyMing
    Author

    Please indicate your version of pycharm.

    image
    the version is 2022.2. btw, Due to the security rule of my company, we cannot installed these softwares casually. These softwares are installed by the company IT department. I am not sure whether this will affect using Matplotlib

  3. anntzer commented on Feb 17, 2023

    @anntzer
    Contributor

    I cannot check right now but it seems extremely unlikely that that version of pycharm is compatible with Matplotlib 3.7, at least given JetBrains/intellij-community@808410b. (Edit: I am now certain that without that patch things will fail as we'll ultimately call vars(None).)
    Please consider downgrading Matplotlib if you cannot upgrade pycharm.

  4. added this to the v3.7.1 milestone on Jul 5, 2023
  5. changed the title [-][Bug]: [/-] [+][Bug]: errors using pycharm backend[/+] on Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions