Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Jul 24, 2023
1 parent 8a0bc15 commit f724b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/colorsampler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ function assemble_colors(colortype, color, plot)
end

function assemble_colors(::Number, color, plot)
plot.colorrange[] isa Automatic && error("Cannot determine a colorrange automatically for single number color value $intensity. Pass an explicit colorrange.")
plot.colorrange[] isa Automatic && error("Cannot determine a colorrange automatically for single number color value. Pass an explicit colorrange.")

cm = assemble_colors([color[]], lift(x -> [x], color), plot)
return lift((args...)-> numbers_to_colors(args...)[1], cm.color_scaled, cm.colormap, identity, cm.colorrange_scaled, cm.lowclip, cm.highclip,
Expand Down

0 comments on commit f724b7b

Please sign in to comment.