You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be related to issue #1178 and #1198
I guess it is a little bit ambiguous when the color is given just as a number, but the error message is quite unhelpful.
MWE:
using GLMakie
x =range(0, 10, length=100)
scatter(x, sin, color=1)
I get the same error message, when I try to create a Legend:
using CairoMakie
let
color_values =1:5
colorrange = (1,5)
fig =Figure()
Axis(fig[1,1])
for i ineachindex(color_values)
scatter!(1:10, i .+ (1:10);
color=color_values[i],
colorrange,
colormap=:viridis,
label="val = $(color_values[i])")
end### the legend produces the error messageaxislegend()
fig
end
I guess that this code should run.. it was also working for an earlier CairoMakie/GLMakie version. I am using now:
This might be related to issue #1178 and #1198
I guess it is a little bit ambiguous when the color is given just as a number, but the error message is quite unhelpful.
MWE:
Error:
The text was updated successfully, but these errors were encountered: