From 0c4623873c7b02fc9ab00c447245ed24e7d02b4d Mon Sep 17 00:00:00 2001 From: jaakkor2 Date: Tue, 8 Dec 2020 09:50:30 +0100 Subject: [PATCH] Handle basex, basey, linthreshx, linthreshy deprecated in matplotlib 3.3 (#3183) See https://matplotlib.org/3.3.0/api/api_changes.html --- src/backends/pyplot.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 8a62292f..7df748f1 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -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"