#5258·ScottPlot

Excessive Heatmap refreshes when setting `Extent`, cell dimensions, etc

Author: bclehmannCreated Jul 23, 2026Updated Jul 23, 2026

Issue: From MrEchoes in the discord, he suggested adding a param to skip Update(), but I think we should just be marking the image as dirty and recompute it on draw.

They said they've been getting around this by setting the intensities to a small array, setting all the properties they want, and then calling Update with the new intensities at the end, so it only does an update with the large array once.

ScottPlot Version: 5.1.58

Code Sample:

cs
var hm = myPlot.Add.Heatmap(data);
hm.CellWidth = 100; // Each of these will call hm.Update (through modifying Extent)
hm.CellHeight = 10;