Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature Request: Add annotations to heatmaps (imshow or pcolor*) #10956

@raheson

Description

@raheson

I noticed that imshow or pcolor* do not have an option to add annotations to each box.
Currently, MPL creates heatmaps such as the one below:
image

However, MPL does not have the ability to add values to each grid box such as the image below:
image

This seems like a standard feature, which can enhance the readability of these heatmaps. In addition, this can be very helpful when values are 0.01 apart. It can help the user distinguish the heatmap values more efficiently. A proposed solution to turn on these values would look like plt.pcolor(data, showvalues=true).

Shouldn't this be included?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions