-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Description
This works in ScottPlot 4 but Reverse() or Reversed() methods would make it more convenient
var colormap = ScottPlot.Drawing.Colormap.Turbo;
var colors = Enumerable.Range(0, 255).Select(x => colormap.GetColor(x / 255.0));
var reversed = new ScottPlot.Drawing.Colormap(colors.Reverse().ToArray());
double[,] data = DataGen.SampleImageData();
var hm1 = plt.AddHeatmap(data, lockScales: false);
hm1.Update(data, colormap);
var hm2 = plt.AddHeatmap(data, lockScales: false);
hm2.XMin = 75;
hm2.Update(data, reversed);Thanks @bukkideme for bringing this up in the Discord #1966
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
