title: How can I use Humor Sans in matplotlib?
body: <p>I want to create an XKCD-style graph of a ROC curve with matploblib. It mostly works fine, but I don't understand why it doesn't use humor sans. It is definitely installed on my system:</p>
  
  <pre><code>$ fc-list | grep -i humor
  /home/user/.local/share/fonts/Humor-Sans.ttf: Humor Sans:style=Regular
  </code></pre>
  
  <p>How can I make matplotlib use the Humor-Sans font?</p>
  
  <p>I already tried adding <code>fontname='Humor Sans'</code>:</p>
  
  <pre><code>/home/user/.local/lib/python3.6/site-packages/matplotlib/font_manager.py:1328:
  UserWarning: findfont: Font family ['Humor Sans'] not found.
  Falling back to DejaVu Sans
  </code></pre>
  
  <h2>My Code</h2>
  
  <pre><code>import matplotlib.pyplot as plt
  import numpy as np
  
  with plt.xkcd():
      xs = np.linspace(0, 1, 50)
      plt.plot(xs, (1 / (-xs) + 50) / 50)
      plt.plot(xs, xs)
      plt.title('ROC Curve')
      plt.xlabel('False Positive Rate')
      plt.ylabel('True Positive Rate')
      plt.savefig('xkcd-roc-explanation.png')
  </code></pre>
  
  <h2>Current result</h2>
  
  <p><a href="https://i.stack.imgur.com/wtWzL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wtWzL.png" alt="enter image description here"></a></p>