Skip to content

Default alignment y tick labels of sns.heatmap #2484

@jhncls

Description

@jhncls

The vertical alignment of the y tick labels of a heatmap always look top-aligned. It seems more natural to have them vertically centered.

import numpy as np
import seaborn as sns

m = ['January', 'February', 'March']
sns.heatmap(data=np.random.rand(3, 3), yticklabels=m, xticklabels=m)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions