From d2828a2af977e49d43d6fcab53dcbeab76181b03 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Mon, 23 Sep 2024 10:46:03 +0800 Subject: [PATCH] Add more fonts to avoid errors I had the following errors on my system. ``` findfont: Generic family 'sans-serif' not found because none of the following families were found: Helvetica, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Avant Garde, sans-serif findfont: Generic family 'monospace' not found because none of the following families were found: Decima Mono, Bitstream Vera Sans Mono, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace ``` I tried to install the fonts but I couldn't make it find it. So I ran the following commands and added the fonts it showed to the configuration file. ``` >>> import matplotlib as plt >>> ', '.join(plt.rcParams['font.sans-serif']) >>> ', '.join(plt.rcParams['font.monospace']) ``` Signed-off-by: Daniel Schaefer --- src/data_morph/plotting/config/plot_style.mplstyle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data_morph/plotting/config/plot_style.mplstyle b/src/data_morph/plotting/config/plot_style.mplstyle index 0586f53d..185b39ba 100644 --- a/src/data_morph/plotting/config/plot_style.mplstyle +++ b/src/data_morph/plotting/config/plot_style.mplstyle @@ -2,7 +2,7 @@ font.size: 12.0 font.family: monospace font.weight: normal -font.sans-serif: Helvetica, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Avant Garde, sans-serif -font.monospace: Decima Mono, Bitstream Vera Sans Mono, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace +font.sans-serif: Helvetica, DejaVu Sans, Bitstream Vera Sans, Computer Modern Sans Serif, Lucida Grande, Verdana, Geneva, Lucid, Arial, Avant Garde, sans-serif +font.monospace: Decima Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Computer Modern Typewriter, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace text.color: 222222 pdf.fonttype: 42