python-ternary icon indicating copy to clipboard operation
python-ternary copied to clipboard

Option to turn off edge outlines in heatmap segments

Open big-o opened this issue 4 years ago • 2 comments

Great library! I've been using it to generate some plots with a background that has a different colour at each corner, and becomes more opaque at the centre.

I've noticed that when you set the alpha to < 1, you start to see the edges around each segment. This creates an unwanted "grid" which is either triangular or hexagonal.

Simply setting the edgecolor to "none" in the ax.fill call in heatmapping.heatmap seems to fix it, and produces a lovely smooth effect.

Can we either get this changed, or make it a configurable option to turn off the edge lines?

big-o avatar Sep 12 '20 18:09 big-o

So basically you want to be able to pass through arguments to ax.fill ? That seems fine to me.

marcharper avatar Sep 13 '20 16:09 marcharper

Pretty much. I'd argue that defaulting edgecolor to 'none' too would be a better choice than the current default behaviour, but that's a matter of opinion and if we can override then it doesn't really matter anyway.

big-o avatar Sep 13 '20 18:09 big-o