Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font is causing trouble in Linux cronjobs #38

Open
bonedi opened this issue Dec 10, 2021 · 0 comments
Open

Font is causing trouble in Linux cronjobs #38

bonedi opened this issue Dec 10, 2021 · 0 comments

Comments

@bonedi
Copy link

bonedi commented Dec 10, 2021

If I use your calmap function on my Linux Red Hat Enterprise distribution, I'll get the warning
findfont: Font family ['Arial'] not found. Falling back to DejaVu Sans.
Normally the warning will be just ignored, but if executed in the context of a cronjob it will cause the job to exit.
In your code the Font is defined in Line 308:

ylabel_kws = dict(
        fontsize=32,
        color=kwargs.get('fillcolor', 'whitesmoke'),
        fontweight='bold',
        fontname='Arial',
        ha='center')

Could this be changed to fontfamily = 'serif' or to a parameter?

Since I don't have admin rights on this machine there is no way for me to just install the missing Font.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant