Multiple Colorbars
Multiple colorbars may be added to plots.
ScottPlot.Plot myPlot = new();
double[,] data = SampleData.MonaLisa();
var hm1 = myPlot.Add.Heatmap(data);
hm1.Rectangle = new(0, 1, 0, 1);
hm1.Colormap = new ScottPlot.Colormaps.Turbo();
myPlot.Add.ColorBar(hm1);
var hm2 = myPlot.Add.Heatmap(data);
hm2.Rectangle = new(1.5, 2.5, 0, 1);
hm2.Colormap = new ScottPlot.Colormaps.Viridis();
myPlot.Add.ColorBar(hm2);
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Heatmap category
