Use font roboto with matplotlib
authorRuben Rodriguez <ruben@gnu.org>
Thu, 16 Feb 2023 16:10:04 +0000 (17:10 +0100)
committerRuben Rodriguez <ruben@gnu.org>
Thu, 16 Feb 2023 16:10:04 +0000 (17:10 +0100)
README.md
plugins/matplotlib.py

index 5c5f6acc27d3c48a6450bc3fe03f03d33a4255e1..5e54454c6800ba706d1020fe4b531597723cfa4f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -11,6 +11,7 @@ For Trisquel users: Note that although virtualenv and pip are free software, the
     pip install pelican-liquid-tags
     pip install pelican-image-process
     pip install matplotlib
+    python -m pip install font-roboto
 
     cp plugins/* ./lib/python*/site-packages/pelican/plugins/liquid_tags
 
index 8c7f63379a7d546e91eee31dc2a1a99f51d76241..19d3aaea208292f58d62bee07f9b604de25b40d0 100644 (file)
@@ -93,7 +93,7 @@ def run_matplotlib(data, options=[]):
 
     title=data.get("title", None)
     if title is not None:
-      ax1.set_title(data.get("title", None), fontsize=24, fontfamily="Droid Sans", fontweight='bold')
+      ax1.set_title(data.get("title", None), fontsize=24, fontfamily="Roboto Sans", fontweight='bold')
     filename=data.get("filename", None)
     plt.setp(pcts, color='white', fontweight='bold', fontsize=9, fontfamily="Droid Sans")
     plt.setp(texts, color='black', fontsize=12, fontfamily="Droid Sans")