Skip to content

Colorbar: improve layout and add support for multiple colorbars#3610

Merged
swharden merged 7 commits intomainfrom
3294
Apr 7, 2024
Merged

Colorbar: improve layout and add support for multiple colorbars#3610
swharden merged 7 commits intomainfrom
3294

Conversation

@swharden
Copy link
Member

@swharden swharden commented Apr 7, 2024

Addresses:

double[,] data = SampleData.MonaLisa();

var hm1 = myPlot.Add.Heatmap(data);
hm1.Extent = new(0, 1, 0, 1);
hm1.Colormap = new ScottPlot.Colormaps.Turbo();
myPlot.Add.ColorBar(hm1);

var hm2 = myPlot.Add.Heatmap(data);
hm2.Extent = new(1.5, 2.5, 0, 1);
hm2.Colormap = new ScottPlot.Colormaps.Viridis();
myPlot.Add.ColorBar(hm2);

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ColorBar: move tick markers closer to colorbar

1 participant