Skip to content

Deprecation error with matplotlib.pyplot.gca(projection='3d') #260

@tran0923

Description

@tran0923

Per matplotlib's official documentation pyplot.gca will no longer accept keyword arguments.

For imexam, this breaks code like:
ax = fig.gca(projection='3d')
at line 1626 in imexamine.py.

One potential fix might be to use ax = fig.add_subplot(projection='3d') instead as suggested here.

This is only relevant for matplotlib version 3.4 and higher and can be avoided locally by using older versions.

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