Skip to content

[MNT]: Clarify whether the values of an AxesImage are known as "data" or as "array" #28929

@anntzer

Description

@anntzer

Summary

The docstring of AxesImage.set_array says "Retained for backwards compatibility - use set_data instead.", but on the getter side, only get_array (inherited from ScalarMappable) exists -- get_data doesn't even exist.

Proposed fix

Be consistent as to which name, "data" or "array", is used. I suspect they could even be made aliases of one another at the ScalarMappable level...
(Perhaps also distantly related to the colorizer-related API changes.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions