ScottPlot/ScottPlot

Heatmap: displayed image is reversed

Zakharovvas opened this issue · 4 comments

Heatmap bug (both 4 and 5 versions).

Element intensities[0,0] is displayed in left upper corner, corresponding to x=0, y=1000.
Element intensities[1000,0] is displayed in left bottom corner, corresponding to x=0, y=1000.

The same bug can be seen in your example https://scottplot.net/cookbook/4.1/recipes/heatmap_limitscale/

the function :

intensities[x, y] = (Math.Sin(x * .2) + Math.Cos(y * .2)) * 100; 

doesn't correspond to what we see on the image.