You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the agg 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.
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
Activity
LucaMarconato commentedon Jul 18, 2024
This is the first plot, the correct one (

method='matplotlib').This is the second plot, the wrong one (

method='datashader').Sonja-Stockhaus commentedon Jul 19, 2024
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 datashaderLucaMarconato commentedon Jul 19, 2024
Thanks for checking into this!
LucaMarconato commentedon Aug 12, 2024
Update: different aggregation functions require different colorbars, we are working into this.