Skip to content

levels on contourf creating white border around plot #1812

@jewh

Description

@jewh

Specifying the colour limits in the contourf function using the levels keyword argument creates a white border around the plot. Seems like unintended behaviour?

MWE:

using CairoMakie

M = rand(10, 10)
fig = CairoMakie.Figure()
ax = Axis(fig[1,1])
cplot = CairoMakie.contourf!(fig[1,1], 1:10, 1:10, M, levels=0:0.1:1)
Colorbar(fig[1,2], cplot)
fig

test

Worth noting that this issue is also displayed in the Colorbar examples on the Makie website: link

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