From a568ab972e34a5f0105b4e34d79227b67dd700de Mon Sep 17 00:00:00 2001 From: jaakkor2 Date: Mon, 7 Dec 2020 23:36:59 +0100 Subject: [PATCH] Handle basex, basey, linthreshx, linthreshy deprecated in matplotlib 3.3 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"