Update src/backends/pgfplotsx.jl

Co-authored-by: t-bltg <tf.bltg@gmail.com>
This commit is contained in:
Simon Christ 2021-10-20 11:09:59 +02:00 committed by GitHub
parent 7b0677c3cc
commit 1430bf742e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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