From 5630629cbb8032d57bbbcdeb774971822b435637 Mon Sep 17 00:00:00 2001 From: Alho Markku J Date: Mon, 9 Sep 2024 11:29:42 +0300 Subject: [PATCH] Swap usetex=True font.family as defaulted by matplotlib in any case - now we just see the logging.infos from matplotlib with new defaults --- pytools.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pytools.py b/pytools.py index f31c16ac..8244b2b1 100644 --- a/pytools.py +++ b/pytools.py @@ -61,8 +61,10 @@ if not os.getenv('PTNOLATEX'): matplotlib.rc('text', usetex=True) matplotlib.rcParams['text.latex.preamble'] = r'\boldmath' - matplotlib.rcParams['mathtext.fontset'] = 'stix' - matplotlib.rcParams['font.family'] = 'STIXGeneral' + # matplotlib.rcParams['mathtext.fontset'] = 'stix' + # matplotlib.rcParams['font.family'] = 'STIXGeneral' + # Matplotlib suppressed logging messages came out after enabling logging.INFO: font.family must be one of (serif, sans-serif, cursive, monospace) when text.usetex is True. serif will be used by default. + matplotlib.rcParams['font.family'] = 'serif' logging.info("Using LaTeX formatting") # matplotlib.rcParams['text.dvipnghack'] = 'True' # This hack might fix it on some systems