Skip to content

Font is causing trouble in Linux cronjobs #38

Open

Description

@bonedi

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions