From 461e6584c8130bf94e12b29b2f2b3c7191d92aef Mon Sep 17 00:00:00 2001 From: Alaettin Serhan Mete Date: Mon, 7 Oct 2024 23:42:44 +0200 Subject: [PATCH] Update the default plotting style --- package/scripts/prmon_plot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/scripts/prmon_plot.py b/package/scripts/prmon_plot.py index 46b326e..4d48d47 100755 --- a/package/scripts/prmon_plot.py +++ b/package/scripts/prmon_plot.py @@ -13,7 +13,8 @@ mpl.use("Agg") import matplotlib.pyplot as plt - plt.style.use("seaborn-whitegrid") + if "seaborn-v0_8-whitegrid" in plt.style.available: + plt.style.use("seaborn-v0_8-whitegrid") except ImportError: print("ERROR:: This script needs numpy, pandas and matplotlib.") print("ERROR:: Looks like at least one of these modules is missing.")