Skip to content

Is there a way to have a binary heatmap? #1

@lquenti

Description

@lquenti

Hi. I'd love to use it for my personal habit tracking, but most of the time I just care about dont or not done. Thus, I'd want to have this orange (or white) for 0 and a dark green for 1.

Unfortunately, this is not what I get by

dates = pd.date_range(start='2024-01-01', end='2024-12-31')
values = np.random.randint(0, 2, size=len(dates))
lesley.cal_heatmap(dates, values)

Image

How would I achieve this? My first intuition would be to hack together some kind of weird binary cmap, but I feel like this is not the way to go...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions