Open sfmiller940 opened 3 years ago
really weird, I've tried tracing this until the point where the cairo surface is created, and it seems like the values there are correct. But both svg and png display with the white colormap are then buggy. Maybe a Cairo issue? It seems to me we're passing correct data to it
oh and the filter thing relates to the fact that the collection of filters cairo offers sometimes don't do anything depending on svg or png or pdf export. for example nearest interpolation for heatmaps doesn't work in svg etc.
I’ve been trying to make heatmaps using colormaps that go from transparent to either white or black.
The interpolation works as expected for black but it looks terrible for white.
Here’s some sample code with the result:
Screenshot from Juno:
Saved PNG:
I noticed the comment "Set filter doesn't work!?" in src/primitives.jl, so maybe this is a known issue? I'll try to investigate more in case I can help...