Merge branch 'bbs/horizontal-legends' of https://github.com/JuliaPlots/Plots.jl into bbs/horizontal-legends

This commit is contained in:
Simon Christ 2021-10-20 11:45:40 +02:00
commit d3a52eab49

View File

@ -954,12 +954,7 @@ function pgfx_linestyle(linewidth::Real, color, α = 1, linestyle = :solid)
)
end
function pgfx_legend_col(s::Symbol)
if s == :horizontal
return -1
end
return 1
end
function pgfx_legend_col(s::Symbol) = s == :horizontal ? -1 : 1
pgfx_legend_col(n) = n