Skip to content

Commit

Permalink
Fix case where using lc=:cycle was not picking color cycling.
Browse files Browse the repository at this point in the history
  • Loading branch information
joa-quim committed Jun 15, 2024
1 parent 68d8f83 commit e433ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils_types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function mat2ds(mat::Array{T,N}, txt::Union{String,Vector{String}}=String[]; hdr

color_cycle = false
if ((color = find_in_dict(d, [:lc :linecolor :color])[1]) !== nothing && color != false)
_color::Vector{String} = (isa(color, VecOrMat{String}) && !isempty(color)) ? vec(string.(color)) : (!isa(color, Vector) && !isa(color, Bool)) ? [string(color)] : matlab_cycle_colors
_color::Vector{String} = (isa(color, VecOrMat{String}) && !isempty(color)) ? vec(string.(color)) : (!isa(color, Vector) && !isa(color, Bool) && color != :cycle) ? [string(color)] : matlab_cycle_colors
color_cycle = true
end
_fill::Vector{String} = helper_ds_fill(d)
Expand Down

0 comments on commit e433ca1

Please sign in to comment.