From 78810884980a2dd6fcc3d9fade7837189606edae Mon Sep 17 00:00:00 2001 From: whitetuft Date: Fri, 12 Jul 2024 23:25:57 +0200 Subject: [PATCH] fix warning in weighting_functions --- pyrtlib/weighting_functions.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pyrtlib/weighting_functions.py b/pyrtlib/weighting_functions.py index ba709e07..6f062a84 100644 --- a/pyrtlib/weighting_functions.py +++ b/pyrtlib/weighting_functions.py @@ -218,10 +218,10 @@ def plot_wf(self, wgt: np.ndarray, title: Optional[str] = '', ylim: Optional[Tup **kwargs: Additional keyword arguments (figsize, dpi) """ - plt.rcdefaults() + # plt.rcdefaults() plt.rcParams.update({'font.size': 15}) - plt.rcParams['font.family'] = 'Arial' - plt.rcParams['font.stretch'] = 'condensed' + # plt.rcParams['font.family'] = 'Arial' + # plt.rcParams['font.stretch'] = 'condensed' # plt.rcParams["font.weight"] = "bold" # plt.rcParams["axes.labelweight"] = "bold" # plt.rc('font', family=['cmr10']) @@ -310,11 +310,11 @@ def plot_wf_grouped(self, wgt: np.ndarray, title: Optional[str] = '', if not self.satellite: raise ValueError("This plot is only available for satellite mode") - plt.rcdefaults() + # plt.rcdefaults() plt.rcParams.update({'font.size': 15}) # plt.rc('font', family=['Sans Serif']) - plt.rcParams['font.family'] = 'Arial' - plt.rcParams['font.stretch'] = 'condensed' + # plt.rcParams['font.family'] = 'Arial' + # plt.rcParams['font.stretch'] = 'condensed' # plt.rcParams["font.weight"] = "bold" # plt.rcParams["axes.labelweight"] = "bold" # plt.rc('mathtext', fontset='cm') @@ -351,7 +351,7 @@ def plot_wf_grouped(self, wgt: np.ndarray, title: Optional[str] = '', incr_wgt = np.min(wgt[index_wgt[i], 1:]) + \ max_increment[index_wgt[i]] plt.text(.02 + incr_wgt, height-perc_height, - f'{grouped_labels[i]}', ha='left', va='top') + f'{grouped_labels[i]}', ha='left', va='top', fontsize=12) plt.xlabel('Weighting Function [$km^{-1}$]') plt.ylabel(y_label)