I’m trying to use matplotlib to generate some graphs on a webpage for me. Everything works pretty well, except, I cannot make a change to the fonts. I’ve set up the scripts to be called as a cgi script or to be run from the command line. When I run them from the command line, I get the correct font (Arial) yet when run from the web page, it uses the CMR10 font. Arial is installed on the linux system.
I’ve thought the problem might be related to which matplotlibrc file each script might be using, but when I check matplotlib.matplotlib_fname() from the command line and web page, they return the same.
Maybe there is a way to get the --verbose-debug output when run from a web page? That could help me figure out what’s going on.
I know I could manually specify the font using font_manager, but that’s not really ideal as I’d have to do it manually for each graph. I’d rather have a global solution for all my graphs. Any help is greatly appreciated.