Re: [Matplotlib-users] Math fonts not working after upgrading to MPL 1.0
It may not be an MPL issue, but rather Snow Leopard. I have a friend who had font troubles, but it was because Mac OSX 10.6 (Snow Leopard) changed the way fonts are handled. He had a file in his home directory (which he created on 10.5) which had some font specifications, which he had to alter/remove to fix his trouble. I can't remember any more details, but thought I would share in case this helps. Andre On Sep 8, 2010, at 8:56 AM, Jeremy Conlin wrote: I have trouble getting any symbols or any super/sub scripts to work since I upgraded to 1.0 a few months ago. I always get a message saying that some font isn't found. This occurs whenever I try to put symbols, superscripts, or subscripts in a label, or when I use a log scale (because then it MPL has to use superscripts). I have tried changing my matplotlibrc file but haven't found any combination of settings that help. To illustrate the problem, I have included three files, one python file and the other the error as captured from the output as well as my matplotlibrc file. The python file is trivial: # - import matplotlib.pyplot as pyplot pyplot.plot([1,2,3], label='$\alpha \beta$') pyplot.legend() pyplot.show() # - Can someone please help me figure out what is wrong? I'm on a Mac running 10.6, python 2.6, matplotlib 1.0, and I have TeX installed. Thanks, Jeremy mathfonterror .txt mathfont .py matplotlibrc -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Math fonts not working after upgrading to MPL 1.0
I have trouble getting any symbols or any super/sub scripts to work since I upgraded to 1.0 a few months ago. I always get a message saying that some font isn't found. This occurs whenever I try to put symbols, superscripts, or subscripts in a label, or when I use a log scale (because then it MPL has to use superscripts). I have tried changing my matplotlibrc file but haven't found any combination of settings that help. To illustrate the problem, I have included three files, one python file and the other the error as captured from the output as well as my matplotlibrc file. The python file is trivial: # - import matplotlib.pyplot as pyplot pyplot.plot([1,2,3], label='$\alpha \beta$') pyplot.legend() pyplot.show() # - Can someone please help me figure out what is wrong? I'm on a Mac running 10.6, python 2.6, matplotlib 1.0, and I have TeX installed. Thanks, Jeremy /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['STIXGeneral'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext])) /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py:1252: UserWarning: findfont: Could not match :family=Bitstream Vera Sans:style=normal:variant=normal:weight=normal:stretch=normal:size=12.0. Returning /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf UserWarning) /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['STIXSizeOneSym'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext])) /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py:1252: UserWarning: findfont: Could not match :family=Bitstream Vera Sans:style=normal:variant=normal:weight=bold:stretch=normal:size=12.0. Returning /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf UserWarning) /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['STIXSizeThreeSym'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext])) /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['STIXSizeFourSym'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext])) /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['STIXSizeFiveSym'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext])) /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['STIXSizeTwoSym'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext])) /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py:1252: UserWarning: findfont: Could not match :family=Bitstream Vera Sans:style=italic:variant=normal:weight=normal:stretch=normal:size=12.0. Returning /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf UserWarning) /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['STIXNonUnicode'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext])) /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['cmb10'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext])) /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['cmtt10'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext])) /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['cmmi10'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext])) /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['cmex10'] not found. Falling back to Bitstream Vera
Re: [Matplotlib-users] Math fonts not working after upgrading to MPL 1.0
On Sep 8, 2010, at 11:56 AM, Jeremy Conlin wrote: I have trouble getting any symbols or any super/sub scripts to work since I upgraded to 1.0 a few months ago. I always get a message saying that some font isn't found. This occurs whenever I try to put symbols, superscripts, or subscripts in a label, or when I use a log scale (because then it MPL has to use superscripts). I have tried changing my matplotlibrc file but haven't found any combination of settings that help. To illustrate the problem, I have included three files, one python file and the other the error as captured from the output as well as my matplotlibrc file. The python file is trivial: # - import matplotlib.pyplot as pyplot pyplot.plot([1,2,3], label='$\alpha \beta$') pyplot.legend() pyplot.show() # - Can someone please help me figure out what is wrong? I'm on a Mac running 10.6, python 2.6, matplotlib 1.0, and I have TeX installed. Works on my system if you use a raw string (note ``r`` before string): pyplot.plot([1,2,3], label=r'$\alpha \beta$') Does that fix your problem? -Tony -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Math fonts not working after upgrading to MPL 1.0
On Wed, Sep 8, 2010 at 10:42 AM, Tony S Yu tsy...@gmail.com wrote: On Sep 8, 2010, at 11:56 AM, Jeremy Conlin wrote: I have trouble getting any symbols or any super/sub scripts to work since I upgraded to 1.0 a few months ago. I always get a message saying that some font isn't found. This occurs whenever I try to put symbols, superscripts, or subscripts in a label, or when I use a log scale (because then it MPL has to use superscripts). I have tried changing my matplotlibrc file but haven't found any combination of settings that help. To illustrate the problem, I have included three files, one python file and the other the error as captured from the output as well as my matplotlibrc file. The python file is trivial: # - import matplotlib.pyplot as pyplot pyplot.plot([1,2,3], label='$\alpha \beta$') pyplot.legend() pyplot.show() # - Can someone please help me figure out what is wrong? I'm on a Mac running 10.6, python 2.6, matplotlib 1.0, and I have TeX installed. Works on my system if you use a raw string (note ``r`` before string): pyplot.plot([1,2,3], label=r'$\alpha \beta$') Does that fix your problem? Unfortunately, no. When I use a raw string, I just get *a@ instead of the expected result. See attached figure for proof. I still get a long list of errors of fonts not being found. Jeremy mathfont.pdf Description: Adobe PDF document -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Math fonts not working after upgrading to MPL 1.0
On Sep 8, 2010, at 2:10 PM, Jeremy Conlin wrote: On Wed, Sep 8, 2010 at 10:42 AM, Tony S Yu tsy...@gmail.com wrote: On Sep 8, 2010, at 11:56 AM, Jeremy Conlin wrote: I have trouble getting any symbols or any super/sub scripts to work since I upgraded to 1.0 a few months ago. I always get a message saying that some font isn't found. This occurs whenever I try to put symbols, superscripts, or subscripts in a label, or when I use a log scale (because then it MPL has to use superscripts). I have tried changing my matplotlibrc file but haven't found any combination of settings that help. To illustrate the problem, I have included three files, one python file and the other the error as captured from the output as well as my matplotlibrc file. The python file is trivial: # - import matplotlib.pyplot as pyplot pyplot.plot([1,2,3], label='$\alpha \beta$') pyplot.legend() pyplot.show() # - Can someone please help me figure out what is wrong? I'm on a Mac running 10.6, python 2.6, matplotlib 1.0, and I have TeX installed. Works on my system if you use a raw string (note ``r`` before string): pyplot.plot([1,2,3], label=r'$\alpha \beta$') Does that fix your problem? Unfortunately, no. When I use a raw string, I just get *a@ instead of the expected result. See attached figure for proof. I still get a long list of errors of fonts not being found. Jeremy mathfont.pdf Hmm, that strange. All the fonts it says aren't found are fonts that should be included in the Matplotlib install. I have pretty much the same setup as you (OSX 10.6, python 2.6), although I'm on Matplotlib trunk. Is it possible your install got screwed up some how. Have you tried a clean install of Matplotlib? If that doesn't work, I'm afraid I won't be of much help, since I can't really reproduce this on my system. Maybe, someone who knows the font system better can help. Best, -Tony -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Math fonts not working after upgrading to MPL 1.0
It may not be an MPL issue, but rather Snow Leopard. I have a friend who had font troubles, but it was because Mac OSX 10.6 (Snow Leopard) changed the way fonts are handled. He had a file in his home directory (which he created on 10.5) which had some font specifications, which he had to alter/remove to fix his trouble. I can't remember any more details, but thought I would share in case this helps. Andre On Wed, Sep 8, 2010 at 8:56 AM, Jeremy Conlin jlcon...@gmail.com wrote: I have trouble getting any symbols or any super/sub scripts to work since I upgraded to 1.0 a few months ago. I always get a message saying that some font isn't found. This occurs whenever I try to put symbols, superscripts, or subscripts in a label, or when I use a log scale (because then it MPL has to use superscripts). I have tried changing my matplotlibrc file but haven't found any combination of settings that help. To illustrate the problem, I have included three files, one python file and the other the error as captured from the output as well as my matplotlibrc file. The python file is trivial: # - import matplotlib.pyplot as pyplot pyplot.plot([1,2,3], label='$\alpha \beta$') pyplot.legend() pyplot.show() # - Can someone please help me figure out what is wrong? I'm on a Mac running 10.6, python 2.6, matplotlib 1.0, and I have TeX installed. Thanks, Jeremy -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users