From 7413f97328bf8784b01055d628998b44b05e423e Mon Sep 17 00:00:00 2001 From: marcowyzajomc <111708492+marcowyzajomc@users.noreply.github.com> Date: Sun, 2 Jun 2024 16:35:28 +0200 Subject: [PATCH] Remove self.img from plot method matplotlib's `show()` method doesn't accept image data as argument, instead it plots whatever is already opened in `__prep_plot()`. This change removes the argument, so the map is displayed after executing this method. --- pygbif/maps/map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygbif/maps/map.py b/pygbif/maps/map.py index 9581695..749d5f0 100644 --- a/pygbif/maps/map.py +++ b/pygbif/maps/map.py @@ -215,7 +215,7 @@ def __make_path(self): return path def plot(self): - plt.show(self.img) + plt.show() def __handle_year(year):