sanitize axis strings (#3772)

This commit is contained in:
Simon Christ 2021-08-28 21:08:21 +02:00 committed by GitHub
parent ea686c331b
commit 0a9da21443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1174,6 +1174,12 @@ function pgfx_sanitize_plot!(plt)
end
elseif value isa Union{AbstractString,AbstractVector{<:AbstractString}}
subplot.attr[key] = pgfx_sanitize_string.(value)
elseif value isa Axis
for (k, v) in value.plotattributes
if v isa Union{AbstractString,AbstractVector{<:AbstractString}}
value.plotattributes[k] = pgfx_sanitize_string.(v)
end
end
end
end
end