Closed LucaMarconato closed 3 weeks ago
This is the first plot, the correct one (method='matplotlib'
).
This is the second plot, the wrong one (method='datashader'
).
Thanks @LucaMarconato! The aggregation is correct, but shade()
uses an equi-width histogram for coloring per default, while we want the linear version. Now it looks like this using datashader
Thanks for checking into this!
Update: different aggregation functions require different colorbars, we are working into this.
When
method=datashader
is used the colors that are produced are wrong. Strangely the colorbar is correct. Initially I though this was due to the choice of theagg
function when each pixel of the rasterized image was overlapping multiple elements. But since this problem appears also for large bins, which span several pixels, and since no border effect is observed, I believe that the problem lies elsewhere.Code to reproduce.