From c652b62ef348c7c0018593a60404b2f768d496e8 Mon Sep 17 00:00:00 2001 From: manuelgloeckler Date: Sun, 4 Feb 2024 14:30:55 +0100 Subject: [PATCH] Load style file more stably --- labproject/plotting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/labproject/plotting.py b/labproject/plotting.py index eb22574..5f09d60 100644 --- a/labproject/plotting.py +++ b/labproject/plotting.py @@ -2,7 +2,8 @@ import os # Load matplotlibrc file -plt.style.use("../matplotlibrc") +STYLE_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "matplotlibrc")) # Necessary for GitHub Actions +plt.style.use(STYLE_PATH) PLOT_PATH = "../plots/"