From 1e8ed71d95821b11c08c0cb6ddc7f637f9eeeb95 Mon Sep 17 00:00:00 2001 From: Simone Carlo Surace <51025924+simsurace@users.noreply.github.com> Date: Wed, 6 Nov 2024 15:18:57 +0100 Subject: [PATCH] fix typo in `plotly_colorscale` (#5017) --- PlotsBase/src/plotly.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlotsBase/src/plotly.jl b/PlotsBase/src/plotly.jl index 8612b01c0..f927ace8f 100644 --- a/PlotsBase/src/plotly.jl +++ b/PlotsBase/src/plotly.jl @@ -614,7 +614,7 @@ plotly_colorscale(c::AbstractVector{<:Colorant}, α = nothing) = [[0.0, rgba_string(plot_color(c[1], α))], [1.0, rgba_string(plot_color(c[1], α))]] else vals = range(0.0, stop = 1.0, length = length(c)) - map(i --> [vals[i], rgba_string(plot_color(c[i], α))], eachindex(c)) + map(i -> [vals[i], rgba_string(plot_color(c[i], α))], eachindex(c)) end function plotly_colorscale(cg::PlotUtils.CategoricalColorGradient, α = nothing)