Skip to content

Commit

Permalink
Merge branch 'master' into ff/fix_contour_labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer authored Jul 24, 2023
2 parents ffa4078 + 04f6704 commit ed63cda
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 ed63cda

Please sign in to comment.