Skip to content

Matplotlib==3.7.0 Atttibute Error #195

@mohini2110

Description

@mohini2110

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions