-
-
Notifications
You must be signed in to change notification settings - Fork 370
Open
Labels
Legend & ColorbarenhancementFeature requests and enhancementsFeature requests and enhancementsplanningFor discussion and planning developmentFor discussion and planning development
Description
MWE
using GLMakie
GLMakie.activate!()
f = Figure()
ax = Axis(f[1,1])
density!(ax, randn(200) .- 2sin(2/3*pi),
color = :x, colormap = :thermal, colorrange = (-5, 5),
strokewidth = 1, strokecolor = :black, label="density")
Legend(f[1,2], ax)
fthrows
julia> include("new_mwe.jl")
ERROR: LoadError: Unknown color: xThe above works if any other <:Colorant is given and it then plots a little square with that color as the marker in the Legend.
Should we plot a squeezed colorbar as the legend marker in this case?
Btw: I think the same question also applies to a heatmap. However, there isn't an overload for of legendelements for it yet.
Metadata
Metadata
Assignees
Labels
Legend & ColorbarenhancementFeature requests and enhancementsFeature requests and enhancementsplanningFor discussion and planning developmentFor discussion and planning development
Type
Projects
Status
No status