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

Matplotlib==3.7.0 Atttibute Error #195

Open
mohini2110 opened this issue Mar 22, 2023 · 1 comment
Open

Matplotlib==3.7.0 Atttibute Error #195

mohini2110 opened this issue Mar 22, 2023 · 1 comment

Comments

@mohini2110
Copy link

Using interactive shell with matplotlib latest version(3.7.0) I got the following error

AttributeError: 'FigureCanvasQTAgg' object has no attribute 'set_window_title'

However, downgrading to matplotlib==3.4.0 worked with a Deprecation Warning:

The set_window_title function was deprecated in Matplotlib 3.4 and will be removed two minor releases later. Use manager.set_window_title or GUI-specific methods instead. fig.canvas.set_window_title('PyBDSM Fit Results for '+ img.filename) /path_to_python3.8/site-packages/bdsf/plotresults.py:252: MatplotlibDeprecationWarning: You are modifying the state of a globally registered colormap. This has been deprecated since 3.3 and in 3.6, you will not be able to modify a registered colormap in-place. To remove this warning, you can make a copy of the colormap first. cmap = mpl.cm.get_cmap("gray").copy() gray_palette.set_bad('k')

@gmloose
Copy link
Collaborator

gmloose commented Mar 22, 2023

Thanks for the report. We will look into this. Deprecation warnings often stay below the radar, unfortunately.

This was referenced Mar 31, 2023
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

2 participants