Open maxfreu opened 8 months ago
CairoMakie draws heatmap cells larger than they are so that you don't get background-colored artifacts at the seams. It should not draw them larger if the adjacent cells are not fully opaque, but maybe in your case the cells are even spanning across more than one neighbor, so they peek through. So we have to check that the overdrawing width is at most some fraction of the neighboring cell so that this cannot happen.
I want to create a heatmap of a non-square matrix with square pixels. I'm trying to achieve this by setting a colsize of defined aspect. This however leads to somehow staggered pixels and strange effects, as CairoMakie seemingly draws the pixels larger than they actually are.
Some demo code and the corresponding PDF opened in inkscape:
The problem:
Any idea how I can make the pixels square without this effect?
Makie 0.20.7, CairoMakie 0.11.8, julia 1.10