add kpfonts and change mpl prologue to load kpfonts and updated style
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user