From 20df5e62ee9eeee97ea5904daeff7bb9b6cbcd0e Mon Sep 17 00:00:00 2001 From: bikegeek Date: Thu, 12 May 2022 18:41:04 -0600 Subject: [PATCH 1/3] #1614 explicitly pass a list to colors for the dummy point to address the Matplotlib deprecation --- metplus/wrappers/cyclone_plotter_wrapper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metplus/wrappers/cyclone_plotter_wrapper.py b/metplus/wrappers/cyclone_plotter_wrapper.py index 5edc6333e..17feb54ea 100644 --- a/metplus/wrappers/cyclone_plotter_wrapper.py +++ b/metplus/wrappers/cyclone_plotter_wrapper.py @@ -490,7 +490,8 @@ def create_plot(self): # Dummy point to add the additional label explaining the labelling of the first # point in the storm track - plt.scatter(0, 0, zorder=2, marker=None, c='', + colors = [] + plt.scatter(0, 0, zorder=2, marker=None, c=[], label="Date (dd/hhz) is the first " + "time storm was able to be tracked in model") From 0b5e1b650cacbbd1513719a7038240310152a219 Mon Sep 17 00:00:00 2001 From: bikegeek <3753118+bikegeek@users.noreply.github.com> Date: Tue, 24 May 2022 11:06:10 -0600 Subject: [PATCH 2/3] Update cyclone_plotter_wrapper.py remove colors options for dummy points for now --- metplus/wrappers/cyclone_plotter_wrapper.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/metplus/wrappers/cyclone_plotter_wrapper.py b/metplus/wrappers/cyclone_plotter_wrapper.py index 17feb54ea..ae3a71f14 100644 --- a/metplus/wrappers/cyclone_plotter_wrapper.py +++ b/metplus/wrappers/cyclone_plotter_wrapper.py @@ -490,8 +490,7 @@ def create_plot(self): # Dummy point to add the additional label explaining the labelling of the first # point in the storm track - colors = [] - plt.scatter(0, 0, zorder=2, marker=None, c=[], + plt.scatter(0, 0, zorder=2, marker=None, label="Date (dd/hhz) is the first " + "time storm was able to be tracked in model") From ac856e208e5004aab79bc30f0d85105936cfa983 Mon Sep 17 00:00:00 2001 From: bikegeek Date: Sat, 28 May 2022 08:55:06 -0600 Subject: [PATCH 3/3] added explicit empty list to colors for dummy point --- metplus/wrappers/cyclone_plotter_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metplus/wrappers/cyclone_plotter_wrapper.py b/metplus/wrappers/cyclone_plotter_wrapper.py index ae3a71f14..b3db2c8ed 100644 --- a/metplus/wrappers/cyclone_plotter_wrapper.py +++ b/metplus/wrappers/cyclone_plotter_wrapper.py @@ -490,7 +490,7 @@ def create_plot(self): # Dummy point to add the additional label explaining the labelling of the first # point in the storm track - plt.scatter(0, 0, zorder=2, marker=None, + plt.scatter(0, 0, zorder=2, marker=None, c=[], label="Date (dd/hhz) is the first " + "time storm was able to be tracked in model")