From: Ruben Rodriguez Date: Thu, 16 Feb 2023 16:10:04 +0000 (+0100) Subject: Use font roboto with matplotlib X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=914a7b6862395d2dd9e5e26c3b6939ef263b448a;p=financial-reports.git Use font roboto with matplotlib --- diff --git a/README.md b/README.md index 5c5f6ac..5e54454 100644 --- 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 diff --git a/plugins/matplotlib.py b/plugins/matplotlib.py index 8c7f633..19d3aae 100644 --- a/plugins/matplotlib.py +++ b/plugins/matplotlib.py @@ -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")