Skip to content

Style for Colorbar #1447

@diluculo

Description

@diluculo

I'd like to know how to apply a style to the TickMarkColor and TickLabelFont of Colorbar?

For example, when black style is applied, TickMarkColor and TickLabelFont.Color will still be Black.

// HeatmapColormap in cookbook
public void ExecuteRecipe(Plot plt)
{
    double[,] intensities = new double[100, 100];
    for (int x = 0; x < 100; x++)
        for (int y = 0; y < 100; y++)
            intensities[x, y] = (Math.Sin(x * .2) + Math.Cos(y * .2)) * 100;

    var hm = plt.AddHeatmap(intensities, Drawing.Colormap.Turbo);
    var cb = plt.AddColorbar(hm);
    plt.Style(Style.Black);
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions