From c229e30048cf128a3f8fcc1bb21bf0b0787855fb Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Fri, 5 Jul 2024 15:26:55 -0400 Subject: [PATCH 1/2] check for matplotlibs.colormaps before matplotlibs.colormaps.register (#592) --- src/colormaps.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/colormaps.jl b/src/colormaps.jl index 2bf4fd3..a12079b 100644 --- a/src/colormaps.jl +++ b/src/colormaps.jl @@ -55,7 +55,7 @@ function init_colormaps() copy!(LinearSegmentedColormap, colorsm."LinearSegmentedColormap") copy!(cm_get_cmap, haskey(plt, "get_cmap") ? plt."get_cmap" : cm."get_cmap") - copy!(cm_register_cmap, haskey(matplotlib.colormaps, "register") ? matplotlib.colormaps."register" : cm."register_cmap") + copy!(cm_register_cmap, haskey(matplotlib, "colormaps") && haskey(matplotlib."colormaps", "register") ? matplotlib."colormaps"."register" : cm."register_cmap") copy!(ScalarMappable, cm."ScalarMappable") copy!(Normalize01, pycall(colorsm."Normalize",PyAny,vmin=0,vmax=1)) From cb34a10b8e2481f9a8210789119b8599db448bd7 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Fri, 5 Jul 2024 15:27:21 -0400 Subject: [PATCH 2/2] Update Project.toml: bump to 2.11.4 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 64480cd..1b7392d 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "PyPlot" uuid = "d330b81b-6aea-500a-939a-2ce795aea3ee" -version = "2.11.3" +version = "2.11.4" [deps] Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"