It should also be noted that attributes like weight and stretch are
only hints for the purpose of finding a font. That is, if you request a
bold version of a font, and it does not exist, the closest matching font
will be used instead. matplotlib (more specifically freetype) does not
do font
All,
I just submitted bug #2963827 detailing this, but thought that I would echo the
problem here.
When plotting annotations and specifying the FontProperties to use, the
specified values are completely ignored. See the attached
script and image for an example. Am I doing something
Do you have fonts whose family name is sans serif?
Maybe you meant sans-serif?
sans-serif searches for fonts whose family name is in
rcParams[font.sans-serif], but sans serif only search for sans
serif.
I don't think it has anything to do with annotation.
Check if findfont gives you a correct