use broadcasting for scalar case
This commit is contained in:
parent
b6b651764f
commit
4ca234ebea
@ -1644,7 +1644,7 @@ function warn_on_unsupported_scales(pkg::AbstractBackend, plotattributes::AKW)
|
|||||||
for k in (:xscale, :yscale, :zscale, :scale)
|
for k in (:xscale, :yscale, :zscale, :scale)
|
||||||
if haskey(plotattributes, k)
|
if haskey(plotattributes, k)
|
||||||
v = plotattributes[k]
|
v = plotattributes[k]
|
||||||
if !all(x->is_scale_supported(pkg, x), v)
|
if !all(is_scale_supported.(Ref(pkg), v))
|
||||||
@warn(
|
@warn(
|
||||||
"scale $v is unsupported with $pkg. Choose from: $(supported_scales(pkg))"
|
"scale $v is unsupported with $pkg. Choose from: $(supported_scales(pkg))"
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user