Handle basex, basey, linthreshx, linthreshy deprecated in matplotlib 3.3 (#3183)

See https://matplotlib.org/3.3.0/api/api_changes.html
This commit is contained in:
jaakkor2 2020-12-08 09:50:30 +01:00 committed by GitHub
parent 4c95ca5089
commit 0c4623873c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -799,6 +799,9 @@ function py_set_scale(ax, sp::Subplot, axis::Axis)
letter = axis[:letter]
scale in supported_scales() || return @warn("Unhandled scale value in pyplot: $scale")
func = getproperty(ax, Symbol("set_", letter, "scale"))
if PyPlot.version v"3.3" # https://matplotlib.org/3.3.0/api/api_changes.html
letter = Symbol("")
end
kw = KW()
arg = if scale == :identity
"linear"