Skip to content

Commit

Permalink
fix warning in weighting_functions
Browse files Browse the repository at this point in the history
  • Loading branch information
whitetuft committed Jul 12, 2024
1 parent f681d0d commit 7881088
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pyrtlib/weighting_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7881088

Please sign in to comment.