use broadcasting for scalar case

This commit is contained in:
Simon Christ 2021-12-09 09:59:45 +01:00
parent b6b651764f
commit 4ca234ebea

View File

@ -1644,7 +1644,7 @@ function warn_on_unsupported_scales(pkg::AbstractBackend, plotattributes::AKW)
for k in (:xscale, :yscale, :zscale, :scale)
if haskey(plotattributes, k)
v = plotattributes[k]
if !all(x->is_scale_supported(pkg, x), v)
if !all(is_scale_supported.(Ref(pkg), v))
@warn(
"scale $v is unsupported with $pkg. Choose from: $(supported_scales(pkg))"
)