Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.10 update break seaborn #2450

Open
BoyceCecil opened this issue Jan 22, 2025 · 1 comment
Open

3.10 update break seaborn #2450

BoyceCecil opened this issue Jan 22, 2025 · 1 comment

Comments

@BoyceCecil
Copy link

import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sns.set(style="whitegrid")
cancer_data_path = "cancer.csv"
df = pd.read_csv(cancer_data_path)
sns.lineplot(data=df['Id'])
plt.show()
Traceback (most recent call last):
  File "C:\Users\BoyceCecil\Desktop\cancer_data\main.py", line 12, in <module>
    plt.show()
  File "C:\Users\BoyceCecil\Desktop\cancer_data\venv\lib\site-packages\matplotlib\pyplot.py", line 614, in show
    return _get_backend_mod().show(*args, **kwargs)
  File "C:\Program Files\JetBrains\PyCharm 2023.1.3\plugins\python\helpers\pycharm_matplotlib_backend\backend_interagg.py", line 29, in __call__
    manager.show(**kwargs)
  File "C:\Program Files\JetBrains\PyCharm 2023.1.3\plugins\python\helpers\pycharm_matplotlib_backend\backend_interagg.py", line 112, in show
    self.canvas.show()
  File "C:\Program Files\JetBrains\PyCharm 2023.1.3\plugins\python\helpers\pycharm_matplotlib_backend\backend_interagg.py", line 73, in show
    buffer = self.tostring_rgb()
AttributeError: 'FigureCanvasInterAgg' object has no attribute 'tostring_rgb'. Did you mean: 'tostring_argb'?

When I downgrade the matplotlib to 3.7.0 the issue is resolved.

@BoyceCecil
Copy link
Author

BoyceCecil commented Jan 22, 2025

This kind of error is very common among python
People just rename their parameter relentlessly and break every other dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant