python - Matplotlib not listening to font choices -


I am unable to avoid an error about the font option in matplotlib. Whenever I try to plot a remote machine in Linux, I get the following error:

  /home/josh/anaconda/envs/py27/lib/python2.7/site- packages / matplotlib / Font_manager.py:1236: User Alert: Search: Font Family ['Aerial'] was not found. Beatstream Vera Sons (Prop. Family.), SfFemily [Fontx])   

I have edited my .matplotlibrc file (just in case, two places ):

  • .matplotlib / .matplotlibrc
  • .config / matplotlib / .matplotlibrc

    Where I add the following lines:

      Backend: Agg font. Family: Serif font cyirief: Times, Palatino, New Century Schoolbook, Bookman, Computer Modern Roman Font Breath - Serif: Helvetica, Avant Garde, Computer Modern Sans serif font. Creative: Zapf Punch Font Monospace: Courier, Computer Modern Typewriter Text Yussext: True   

    However, there is a complaint about matplotlib arial . Why? (Note that when a script is running, which does not include an IP address, with python my_script.py ).

    If you are using seaborne and the Arial is not installed, it will be (I actually Presently in the process of improving this work) The best solution for time will be to call

      sns.set (font = "serif")   

    seaborn before importing and plotting .

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -