add kpfonts and change mpl prologue to load kpfonts and updated style

This commit is contained in:
2022-12-04 20:01:46 +01:00
parent b38e23eaec
commit 7542f19d77
24 changed files with 95 additions and 1 deletions

View File

@@ -903,7 +903,24 @@ usage: #+HEADER: :prologue (mpl-prologue)
"
(by-backend (latex "")
(article-latex "")
(t "import matplotlib.pyplot as plt;plt.style.use('dark_background');"))))
(t (format "\
import matplotlib.font_manager
kpfonts = matplotlib.font_manager.findSystemFonts(fontpaths=['%s'])
[matplotlib.font_manager.fontManager.addfont(i) for i in kpfonts]
import matplotlib.style
matplotlib.style.reload_library()
import matplotlib.pyplot as plt
styles = plt.style.core.read_style_directory('%s')
plt.style.core.update_nested_dict(plt.style.library, styles)
try:
plt.style.use('my')
except:
pass
"
(concat config-dir "scripts/fonts")
(concat config-dir "scripts/matplotlib-stylelib")))))
(use-package ol-notmuch
:after (org))