Re: [Matplotlib-users] font setting in matplotlib 1.3.1

2014-01-27 Thread Vlastimil Brom
Many thanks for the fix as well as for the info! I didn't know, there are built in fonts like this in matplotlib; this would explain the issue - the character support of Bitstream Vera Sans is indeed rather limited; morover the special "defaulting" status of this font hopefully means, that this sho

Re: [Matplotlib-users] font setting in matplotlib 1.3.1

2014-01-27 Thread Michael Droettboom
Thanks for the report. Indeed, you are correct in that the root of this problem is that "Bitstream Vera Sans" does not contain these characters, yet it is being selected erroneously. It does appear that there is a bug in the font selection algorithm, that "Bitstream Vera Sans" gets selected

Re: [Matplotlib-users] font setting in matplotlib 1.3.1

2014-01-27 Thread Phil Elson
Thanks for this Vlastimil, looks like there is either a subtlety beyond my font knowledge or a bug here - mdboom, did you have any ideas? Otherwise I think we need a github issue for this. Cheers, On 4 January 2014 19:37, Vlastimil Brom wrote: > Hi all, > after upgrading to matplotlib 1.3.1, I

[Matplotlib-users] font setting in matplotlib 1.3.1

2014-01-04 Thread Vlastimil Brom
Hi all, after upgrading to matplotlib 1.3.1, I noticed some display errors on the plots with regard to accented characters (such as carons etc.). As I recall, I had similar problem in the past and could work around them by modifying rcParams, however, this fix doesn't work as expected in 1.3.1. (wi

Re: [Matplotlib-users] Font in figures needs to load a specific latex package \usepackage{tipa}

2013-07-25 Thread Paul Hobson
On Thu, Jul 25, 2013 at 12:16 PM, Jeffrey Spencer wrote: > I want to use IPA vowel labels in my figures and to do that I need to load > the package in latex \usepackage{tipa}. Is this possible as searching > online besides using the new backend "pgf" I haven't seen how to manually > select latex p

[Matplotlib-users] Font in figures needs to load a specific latex package \usepackage{tipa}

2013-07-25 Thread Jeffrey Spencer
I want to use IPA vowel labels in my figures and to do that I need to load the package in latex \usepackage{tipa}. Is this possible as searching online besides using the new backend "pgf" I haven't seen how to manually select latex packages to load when using tex. Is this possible? Also a side not

Re: [Matplotlib-users] font for errorbar plot

2013-05-31 Thread Sudheer Joseph
Thank you both Paul and Eric the kind helping hands, Sudheer-- Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlen

Re: [Matplotlib-users] font for errorbar plot

2013-05-30 Thread Eric Firing
On 2013/05/30 3:42 PM, Paul Hobson wrote: > > > > On Thu, May 30, 2013 at 6:28 PM, Sudheer Joseph > mailto:sudheer.jos...@yahoo.com>> wrote: > > Dear Users, > Is there a way to set font size of error bar plot > axis? I tried below one but get error that "'ErrorbarContai

Re: [Matplotlib-users] font for errorbar plot

2013-05-30 Thread Paul Hobson
On Thu, May 30, 2013 at 6:28 PM, Sudheer Joseph wrote: > Dear Users, > Is there a way to set font size of error bar plot axis? I > tried below one but get error that "'ErrorbarContainer' object has no > attribute 'xaxis'" > any help?? > > ax=plt.errorbar(y,x,err,label='STDV') > plt

[Matplotlib-users] font for errorbar plot

2013-05-30 Thread Sudheer Joseph
Dear Users,     Is there a way to set font size of error bar plot axis? I tried below one but get error that "'ErrorbarContainer' object has no attribute 'xaxis'" any help?? ax=plt.errorbar(y,x,err,label='STDV') plt.xlim(0,110) for tick in ax.xaxis.get_major_ticks():    

Re: [Matplotlib-users] Font issue while trying to save PS/EPS/SVG but not PDF

2013-05-28 Thread klo uo
On Tue, May 28, 2013 at 4:40 PM, Michael Droettboom wrote: > Which version of Windows are you on? Apparently, the Segoe UI font is > different on Windows 7 and 8 and I'd like to download and test with the > correct one. I'm on Windows XP, but problem was with the name of the font. This font's name

Re: [Matplotlib-users] Font issue while trying to save PS/EPS/SVG but not PDF

2013-05-28 Thread Michael Droettboom
Which version of Windows are you on? Apparently, the Segoe UI font is different on Windows 7 and 8 and I'd like to download and test with the correct one. Mike On 05/28/2013 06:12 AM, klo uo wrote: > As suggested by Phil, I'm reposting github issue #2067 on this list. > > I use MPL 1.2.1 on Win

[Matplotlib-users] Font issue while trying to save PS/EPS/SVG but not PDF

2013-05-28 Thread klo uo
As suggested by Phil, I'm reposting github issue #2067 on this list. I use MPL 1.2.1 on Windows with Python 2.7.5. In my matplotlibrc I've set sans-serif font to "Segoe UI". Now, if I try to save a plot to PDF, MPL saves it fine, but if I try PS or EPS or SVG it fails, because of the font set. (I

Re: [Matplotlib-users] Font compatibility issue with Adobe Illustrator and MPL PDF's

2012-09-15 Thread Jouni K . Seppänen
florisvb writes: > I'm trying to get my pdf outputs from matplotlib to work properly in > illustrator, but keep having the issue that illustrator does not recognize > the computer modern fonts (eg. CMR10 etc). Everything else seems to work > perfectly. Is there any error message from illustrator

Re: [Matplotlib-users] Font compatibility issue with Adobe Illustrator and MPL PDF's

2012-09-13 Thread Michael Droettboom
Have you tried setting pdf.fonttype to "42", which will include the font verbatim rather than trying to subset it? That may help with illustrator. You may also have better luck importing an SVG into Illustrator. Mike On 09/13/2012 02:46 AM, florisvb wrote: > I'm trying to get my pdf outputs

[Matplotlib-users] Font compatibility issue with Adobe Illustrator and MPL PDF's

2012-09-13 Thread florisvb
I'm trying to get my pdf outputs from matplotlib to work properly in illustrator, but keep having the issue that illustrator does not recognize the computer modern fonts (eg. CMR10 etc). Everything else seems to work perfectly. I'm running matplotlib (1.1.1) in ubuntu precise, and illustrator (CS3

Re: [Matplotlib-users] Font in figures

2012-07-12 Thread Damon McDougall
On Thu, Jul 12, 2012 at 03:53:28PM +0200, David Kremer wrote: > Hello, I want to ask some questions about fonts in figures. > > I think that the best figures are achieved when the font used is the > same as in the surrounding text in all the figure. This is the case when > I use the latex notati

[Matplotlib-users] Font in figures

2012-07-12 Thread David Kremer
Hello, I want to ask some questions about fonts in figures. I think that the best figures are achieved when the font used is the same as in the surrounding text in all the figure. This is the case when I use the latex notation (between $$), but unfortunately the police used for the axis is not

[Matplotlib-users] font cache errors, again

2012-01-10 Thread Nat Echols
I am still seeing the error below in matplotlib-1.1.0 - the bug occurs when the user installs our software to the directory "version1", uses that installation, then installs "version2" and removes "version1", which breaks matplotlib because (unlike any other Python module I've ever used) the absolu

Re: [Matplotlib-users] Font family ['cmb10'] not found

2011-08-15 Thread Michael Droettboom
It looks like it isn't finding the Computer Modern Bakoma fonts. They don't seem to be included in the Fedora Package (see here: http://koji.fedoraproject.org/koji/buildinfo?buildID=230966) and the package does not depend on those fonts. Some of them are packaged in the lyx-fonts package, so

Re: [Matplotlib-users] Font family ['cmb10'] not found

2011-08-15 Thread Neal Becker
Looks like this is fixed by: mathtext.fontset: stix Neal Becker wrote: > Fedora f15. What am I missing that causes this? > > /usr/lib64/python2.7/site-packages/matplotlib/font_manager.py:1242: > UserWarning: findfont: Font family ['cmb10'] not found. Falling back to > Bitstream Vera Sans > (

[Matplotlib-users] Font family ['cmb10'] not found

2011-08-15 Thread Neal Becker
Fedora f15. What am I missing that causes this? /usr/lib64/python2.7/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])) /usr/lib64/python2.7/site-packages/

Re: [Matplotlib-users] Font not carrying through Py2Exe

2011-01-17 Thread Alex S
Thank you very much for the help, I'm sorry I didn't reply to you. I ended up doing what you recommend against, which is I took my fontlist.cache and copied it to the other computers C:\Documents and Settings\username\.matplotlib folder. This worked, maybe because all the computers here have the

Re: [Matplotlib-users] Font not carrying through Py2Exe

2011-01-13 Thread Michael Droettboom
On 01/13/2011 11:38 AM, Alex S wrote: > Hi there, > I've made a program that makes plots using New Century Schoolbook Lt Std > font. I did this by inserting this into the matplotlibrc file: > > font.family : New Century Schoolbook LT Std # serif #sans-serif > > There's also a "fontlist.ca

[Matplotlib-users] Font not carrying through Py2Exe

2011-01-13 Thread Alex S
Hi there, I've made a program that makes plots using New Century Schoolbook Lt Std font. I did this by inserting this into the matplotlibrc file: font.family : New Century Schoolbook LT Std # serif #sans-serif There's also a "fontlist.cache" file that I think points to it when it says:

Re: [Matplotlib-users] Font size on an axis

2010-01-21 Thread Pierre de Buyl
Hello, What I do is to set it _before_ plotting through the rcParams. rcParams['xtick.labelsize']=24 There is also the possiblity to change that property afterwards with an argument to xticks. xticks(fontsize=24) Pierre Le 21 janv. 10 à 22:36, Brian Larsen a écrit : > How does one set the

[Matplotlib-users] Font size on an axis

2010-01-21 Thread Brian Larsen
Hey all, wow, this seems like it should be an easy thing but I am not finding answers in the gallery or searching the documentation. How does one set the font size on ticklabels and labels for a figure? I would expect something like plot(arange(11), xfontsize=14) to work but I am not finding

Re: [Matplotlib-users] font rendering quality

2009-12-01 Thread Ernest Adrogué
1/12/09 @ 09:16 (-0500), thus spake Michael Droettboom: > Subpixel rendering is almost never what you want when producing a > PNG file, since it is likely to be shared on a different machine > requiring different subpixel settings. But it looks like your > mozilla example is not using subpixel re

Re: [Matplotlib-users] font rendering quality

2009-12-01 Thread Michael Droettboom
Subpixel rendering is almost never what you want when producing a PNG file, since it is likely to be shared on a different machine requiring different subpixel settings. But it looks like your mozilla example is not using subpixel rendering either, though it appears to have very strong hinting

Re: [Matplotlib-users] font rendering quality

2009-12-01 Thread Darren Dale
On Tue, Dec 1, 2009 at 6:37 AM, Ernest Adrogué wrote: > 30/11/09 @ 22:28 (-0600), thus spake John Hunter: >> The two examples in the page you link to have different font sizes and >> possibly different font weights, which makes it difficult to do >> side-by-side comparisons.  Could you post an exa

Re: [Matplotlib-users] font rendering quality

2009-12-01 Thread Ernest Adrogué
30/11/09 @ 22:28 (-0600), thus spake John Hunter: > The two examples in the page you link to have different font sizes and > possibly different font weights, which makes it difficult to do > side-by-side comparisons. Could you post an example with > similar/identical settings? Yes, I have attache

Re: [Matplotlib-users] font rendering quality

2009-11-30 Thread John Hunter
On Mon, Nov 30, 2009 at 6:38 PM, Ernest Adrogué wrote: > Hi, > I notice a big difference in quality between the text rendered > by matplotlib and that rendered by the rest of applications. > As an example, see the image attached showing the same font as > shown by firefox and matplotlib respective

[Matplotlib-users] font rendering quality

2009-11-30 Thread Ernest Adrogué
Hi, I notice a big difference in quality between the text rendered by matplotlib and that rendered by the rest of applications. As an example, see the image attached showing the same font as shown by firefox and matplotlib respectively. Is there any config setting I can change to improve the font r

Re: [Matplotlib-users] Font size and savefig

2009-05-01 Thread Thomas Robitaille
The patch seems to work - the MacOSX backend now displays the same font size as the other backends. Thanks! Thomas On 1 May 2009, at 14:06, Michael Droettboom wrote: > Michiel de Hoon provided a patch for this which I just applied to > the trunk. > > As I don't have a Mac, I can't test it -

Re: [Matplotlib-users] Font size and savefig

2009-05-01 Thread Michael Droettboom
Michiel de Hoon provided a patch for this which I just applied to the trunk. As I don't have a Mac, I can't test it -- any feedback is welcome. Mike Jae-Joon Lee wrote: > Thomas, > As John suggested before, please check if the size differences go away > if you use the same dpi, actually dpi=72.

Re: [Matplotlib-users] Font size and savefig

2009-04-30 Thread Jae-Joon Lee
Thomas, As John suggested before, please check if the size differences go away if you use the same dpi, actually dpi=72. After some quick look, it seems that the osx backend does not scale the font size correctly respecting the dpi. At line 124 of bacend_macosx.py, size = prop.get_siz

Re: [Matplotlib-users] Font size and savefig

2009-04-29 Thread Thomas Robitaille
Hi Jae-Jong and John, Thanks for your replies! While experimenting with this to send screenshots, I realized that my default backend was set to MacOSX, not WXAgg. The WXAgg output to the screen actually agrees with the PNG output in terms of font sizes. But the font sizes differ between the

Re: [Matplotlib-users] Font size and savefig

2009-04-29 Thread John Hunter
On Tue, Apr 28, 2009 at 11:24 PM, Jae-Joon Lee wrote: > On Tue, Apr 28, 2009 at 11:09 PM, John Hunter wrote: > > If you want the relative fontsizes in the figure window and saved figure > to > > agree, pass the same "dpi" to the figure command and savefig command. > > John, > I thought the font

Re: [Matplotlib-users] Font size and savefig

2009-04-28 Thread Jae-Joon Lee
On Tue, Apr 28, 2009 at 11:09 PM, John Hunter wrote: > If you want the relative fontsizes in the figure window and saved figure to > agree, pass the same "dpi" to the figure command and savefig command. John, I thought the font size (which is specified in points) is independent of dpi, i.e., font

Re: [Matplotlib-users] Font size and savefig

2009-04-28 Thread John Hunter
On Tue, Apr 28, 2009 at 9:52 PM, Thomas Robitaille < thomas.robitai...@gmail.com> wrote: > Hi, > > I am using the savefig method to save plots - however, I am finding > that the font size is systematically larger in the saved images than > in the WxAgg window. It seems that text is ~30% larger in

[Matplotlib-users] Font size and savefig

2009-04-28 Thread Thomas Robitaille
Hi, I am using the savefig method to save plots - however, I am finding that the font size is systematically larger in the saved images than in the WxAgg window. It seems that text is ~30% larger in PNG and PDF files compared to the WxAgg display (relative to the axes box size). This can b

Re: [Matplotlib-users] Font problem

2008-12-12 Thread Jörgen Stenarson
Jouni K. Seppänen skrev: > Michael Droettboom writes: > >> Jörgen Stenarson wrote: >>> I tried to use usetex to generate my pdf figures but I got a crash >>> when saving the figure, log attached. I traced the crash to >>> find_tex_file(), apparently ' can not be used to quote filenames in >>>

Re: [Matplotlib-users] Font problem

2008-12-11 Thread Jörgen Stenarson
Jouni K. Seppänen skrev: > > In Unix shells ' is the better quoting character because all sorts of > things have special meaning within " characters... but I changed it to > use subprocess.Popen instead, so we shouldn't need to worry about shell > quoting at all. > > Jörgen: Thanks for your repor

Re: [Matplotlib-users] Font problem

2008-12-11 Thread Jouni K . Seppänen
Michael Droettboom writes: > Jörgen Stenarson wrote: >> I tried to use usetex to generate my pdf figures but I got a crash >> when saving the figure, log attached. I traced the crash to >> find_tex_file(), apparently ' can not be used to quote filenames in >> the windows shell it has to be ".

Re: [Matplotlib-users] Font problem

2008-12-11 Thread Michael Droettboom
Jörgen Stenarson wrote: > Michael Droettboom skrev: >>> put the pfm/pfb files it somewhere else and have matplotlib use it? >> I believe Nimbus Roman is just a clone of Times that is included with >> Ghostscript. >> >> http://www.tug.dk/FontCatalogue/nimbus/ >> >> If you have Times or Times New Ro

Re: [Matplotlib-users] Font problem

2008-12-11 Thread Jörgen Stenarson
Michael Droettboom skrev: put the pfm/pfb files it somewhere else and have matplotlib use it? I believe Nimbus Roman is just a clone of Times that is included with Ghostscript. http://www.tug.dk/FontCatalogue/nimbus/ If you have Times or Times New Roman installed, that's probably a reasonabl

Re: [Matplotlib-users] Font problem

2008-12-10 Thread Michael Droettboom
Jörgen Stenarson wrote: > Michael Droettboom skrev: >> Unfortunately, I think this is a bug. The ordering of fonts in the >> family list is being ignored, and Bitstream Vera Sans is winning over >> Nimbus Roman for reasons other than its name. I'll have to get this >> patch in for the bugfix r

Re: [Matplotlib-users] Font problem

2008-12-10 Thread Jörgen Stenarson
Michael Droettboom skrev: > Unfortunately, I think this is a bug. The ordering of fonts in the > family list is being ignored, and Bitstream Vera Sans is winning over > Nimbus Roman for reasons other than its name. I'll have to get this > patch in for the bugfix release we're already planning.

Re: [Matplotlib-users] Font problem

2008-12-10 Thread Michael Droettboom
Unfortunately, I think this is a bug. The ordering of fonts in the family list is being ignored, and Bitstream Vera Sans is winning over Nimbus Roman for reasons other than its name. I'll have to get this patch in for the bugfix release we're already planning. As a workaround, try putting onl

[Matplotlib-users] Font problem

2008-12-10 Thread Jörgen Stenarson
Hi, congratulations on releasing 0.98.4. I especially like the new improved possibilities for legends. I'm trying to understand how to change fonts. But I'm not very successful. I use python 2.5 on windows xp with the latest 0.98.4 of matplotlib. I want to create plots that work well with

Re: [Matplotlib-users] Font sizes for web application

2008-12-02 Thread Jesper Larsen
Thank you for your answers and the obvious solution (banging head into wall). Best regards, Jesper 2008/12/1 Jae-Joon Lee <[EMAIL PROTECTED]>: > On Mon, Dec 1, 2008 at 12:56 AM, Jesper Larsen <[EMAIL PROTECTED]> wrote: >> Hi Matplotlib users, >> >> I have a web application in which I would like t

Re: [Matplotlib-users] Font sizes for web application

2008-12-01 Thread Christopher Barker
Jesper Larsen wrote: > I have a web application in which I would like to scale the plots down > if the users horizontal screen size is less than 800. http://www.scipy.org/Cookbook/Matplotlib/AdjustingImageSize -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA

Re: [Matplotlib-users] Font sizes for web application

2008-11-30 Thread Jae-Joon Lee
On Mon, Dec 1, 2008 at 12:56 AM, Jesper Larsen <[EMAIL PROTECTED]> wrote: > Hi Matplotlib users, > > I have a web application in which I would like to scale the plots down > if the users horizontal screen size is less than 800. Currently only > the plot is scaled while the fonts are fixed in size (

[Matplotlib-users] Font sizes for web application

2008-11-30 Thread Jesper Larsen
Hi Matplotlib users, I have a web application in which I would like to scale the plots down if the users horizontal screen size is less than 800. Currently only the plot is scaled while the fonts are fixed in size (see link below for application). This is of course not a viable solution. I was the

Re: [Matplotlib-users] font name . . .

2008-09-16 Thread Michael Droettboom
You can just do ax.legend(prop=fm.FontProperties('Tahoma')) Cheers, Mike sa6113 wrote: > I want to set font name to 'tahoma.ttf' this code work propely but is there > any way I don't want to use full path name in fname property. > > import matplotlib.font_manager as fm > import ma

[Matplotlib-users] font name . . .

2008-09-16 Thread sa6113
I want to set font name to 'tahoma.ttf' this code work propely but is there any way I don't want to use full path name in fname property. import matplotlib.font_manager as fm import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ax.plot([1,2,3],

Re: [Matplotlib-users] font style problem!

2008-08-19 Thread sa6113
family define font name here. sa6113 wrote: > > I use this code to set plot legend font : > > font = FontProperties(family ='monospace',style = 'italic',size='large', > weight='bold') > self.ax.legend( line, label, legend , prop = font) > > but font style dosen't effect while

Re: [Matplotlib-users] font style problem!

2008-08-19 Thread Mathieu Leplatre
> but font style dosen't effect while other properties set properly. > what is the problem?? Did you try using a font name ? - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linu

[Matplotlib-users] font style problem!

2008-08-18 Thread sa6113
I use this code to set plot legend font : font = FontProperties(family ='monospace',style = 'italic',size='large', weight='bold') self.ax.legend( line, label, legend , prop = font) but font style dosen't effect while other properties set properly. what is the problem?? -- View

Re: [Matplotlib-users] Font weight on axes/labels

2008-06-23 Thread Darren Dale
On Monday 23 June 2008 13:25:19 John Hunter wrote: > On Mon, Jun 23, 2008 at 11:58 AM, Erik Tollerud <[EMAIL PROTECTED]> wrote: > > Hmm... ok, so it is possible to pass some of the text in a plot > > through TeX, but not all of the text? That's what the text.markup rc > > parameter seems to be ab

Re: [Matplotlib-users] Font weight on axes/labels

2008-06-23 Thread John Hunter
On Mon, Jun 23, 2008 at 11:58 AM, Erik Tollerud <[EMAIL PROTECTED]> wrote: > Hmm... ok, so it is possible to pass some of the text in a plot > through TeX, but not all of the text? That's what the text.markup rc > parameter seems to be about, but I get an error saying that its an > unrecognized ke

Re: [Matplotlib-users] Font weight on axes/labels

2008-06-23 Thread Erik Tollerud
Hmm... ok, so it is possible to pass some of the text in a plot through TeX, but not all of the text? That's what the text.markup rc parameter seems to be about, but I get an error saying that its an unrecognized key if I use it... I could have sworn I saw a post way back where someone managed to

Re: [Matplotlib-users] Font weight on axes/labels

2008-06-23 Thread Darren Dale
On Sunday 22 June 2008 21:49:03 Erik Tollerud wrote: > I'm trying to adjust the font weight on some of my plots - I'd like to > have the numbers along the axis ticks be bold instead of regular font > like the default setting. The problem is, nothing I do seems to > change the font weight. I've ch

[Matplotlib-users] Font weight on axes/labels

2008-06-22 Thread Erik Tollerud
I'm trying to adjust the font weight on some of my plots - I'd like to have the numbers along the axis ticks be bold instead of regular font like the default setting. The problem is, nothing I do seems to change the font weight. I've changed everything I can font in matplotlibrc to bold, and when

Re: [Matplotlib-users] Font by default

2008-05-27 Thread Florent Fayette
Hi, Here is what I get when using the verbose mode, since removing and installing over again Matplotlib didn't vhanged anything I suspect my LaTeX packages might be responsible,... Thanks in advance for any help $HOME=/home/fayette CONFIGDIR=/home/fayette/.matplotlib matplotlib data path /usr/

Re: [Matplotlib-users] font always the same in PNG

2008-04-25 Thread Michael Droettboom
There are at least a couple of fishy things here. It doesn't seem to find the Vera fonts that matplotlib installs in mpl-data. Did you remove them, or perhaps the Ubuntu or Debian packagers removed them? Then at least the default font would be correct (and not cmr10.ttf, which is a very bad

Re: [Matplotlib-users] font always the same in PNG

2008-04-24 Thread Paul Smith
Michael Droettboom <[EMAIL PROTECTED]> writes: > > Paul Smith wrote: > > Hi Michael, > > > > I put in the rc line you suggested below into fonts_demo.py but didn't see it > > print any extra info (but did confirm in ipython that rcParams showed > > verbose.level had changed to "annoying"). It

Re: [Matplotlib-users] font always the same in PNG

2008-04-24 Thread Michael Droettboom
Paul Smith wrote: > Hi Michael, > > I put in the rc line you suggested below into fonts_demo.py but didn't see it > print any extra info (but did confirm in ipython that rcParams showed > verbose.level had changed to "annoying"). It just quietly finished otherwise. > Did I miss something here?

Re: [Matplotlib-users] font always the same in PNG

2008-04-24 Thread Paul Smith
Michael Droettboom <[EMAIL PROTECTED]> writes: > > The font lookup mechanism has been much improved in 0.91.2 -- you may > want to try using that. In 0.90.x, often if you don't get a perfectly > exact match for a font, it reverts back to the default "Vera Sans". > Vera Sans, however, is not

Re: [Matplotlib-users] font always the same in PNG

2008-04-24 Thread Michael Droettboom
The font lookup mechanism has been much improved in 0.91.2 -- you may want to try using that. In 0.90.x, often if you don't get a perfectly exact match for a font, it reverts back to the default "Vera Sans". Vera Sans, however, is not a fixed-width font. Can you provide the png file of fonts

[Matplotlib-users] font always the same in PNG

2008-04-23 Thread Paul Smith
Hi all, I've been trying in vain to get a better font on a plot than the fixed width serif one that always appears. I've got lib-freetype6 installed (on Ubuntu server), and ran fc-cache after. The .matplotlib/ttfont.cache contains entries for the Free* fonts. The fonts themselves are in /usr/s

Re: [Matplotlib-users] font

2008-02-11 Thread chuckwhite8
Mike -- thanks for your response. I thought I had tried this and it didn't work. I guess I didn't I just tried the following equivalent approach: ML.rcParams['font.family'] = 'serif' ML.rcParams['font.serif'] = ['Cambria Math'] + ML.rcParams['font.serif'] and it worked like a charm. Thanks

Re: [Matplotlib-users] font

2008-02-11 Thread Michael Droettboom
You shouldn't edit rcsetup.py directly -- that is part of the matplotlib source code. Instead, you should edit the matplotlibrc settings file. In there, you'll actually want to change two settings: 1) Add Cambria to the front of the font.serif list 2) Set "font.family" to "serif", so that m

[Matplotlib-users] font

2008-02-10 Thread chuckwhite8
I would like to be able to use Cambria font (http://en.wikipedia.org/wiki/Cambria_(typeface)) for all text on my charts. I am adding these charts to a MS Word 2007 document written in the same font. I tried to add Cambria as the fist string in rcsetup.py | defaultParams | 'font.serif'. That

[Matplotlib-users] Font problem on import of pylab

2008-01-18 Thread Berthold Höllmann
Hello, With matplotlib-0.91.2 as well as with the latest SVN version I get [EMAIL PROTECTED]:~> python -ic "from matplotlib import pylab" Found an unknown keyword in AFM header (was MetricsSets) Found an unknown keyword in AFM header (was IsBaseFont) Found an unknown keyword in AFM header (was Is

[Matplotlib-users] font size on DateFormatter

2007-09-05 Thread Frank Singleton
Hi , I am plotting some date based data (dates/values). Seems to work ok. The code snippet is below. But what I am trying to do is set the font size of the (%b) month labels (Jan,Feb etc) as they are too big for my small graph and they run into each other .. ax.xaxis.set_major_formatter( DateF

Re: [Matplotlib-users] Font problem saving [e]ps

2007-07-10 Thread Giorgio F. Gilestro
Well I did fix it myself in the meanwhile. I must say I don't like working with the CVS because I am planning to release the application I am writing and I need to guarantee a minimal version of the packages that the end user should eventually install without caring too much about the CVS. Thank y

Re: [Matplotlib-users] Font problem saving [e]ps

2007-07-07 Thread Jouni K . Seppänen
"Giorgio F. Gilestro" <[EMAIL PROTECTED]> writes: > Another bug, though, comes with backend_pdf.py > The function embedPDF in the class PdfFile has a call to > encodings.cp1252.decoding_map[charcode] I believe this was fixed by Michael Droettboom in svn revision 3450. You can apply the patch to

Re: [Matplotlib-users] font problems with eps on OS X (MPL 0.90.0)

2007-05-12 Thread George Nurser
On 12/05/07, Jouni K. Seppänen <[EMAIL PROTECTED]> wrote: > J Oishi <[EMAIL PROTECTED]> writes: > > > I have an interesting problem using fonts in matplotlib on OS X 10.4. > > When I use a font other than the Bitstream Vera provided with MPL > > 0.90.0, I cannot create readable eps files. > > FWIW,

Re: [Matplotlib-users] font problems with eps on OS X (MPL 0.90.0)

2007-05-12 Thread Jouni K . Seppänen
J Oishi <[EMAIL PROTECTED]> writes: > I have an interesting problem using fonts in matplotlib on OS X 10.4. > When I use a font other than the Bitstream Vera provided with MPL > 0.90.0, I cannot create readable eps files. FWIW, I have the same problem: eps files produced on OS X are huge, and

[Matplotlib-users] font problems with eps on OS X (MPL 0.90.0)

2007-05-12 Thread J Oishi
Hi, I have an interesting problem using fonts in matplotlib on OS X 10.4. When I use a font other than the Bitstream Vera provided with MPL 0.90.0, I cannot create readable eps files. More specifically, if I use a font from the OS X system choices, MPL happily creates an eps file, but it c

Re: [Matplotlib-users] Font issue(s) MacOSX/WXAgg

2006-08-18 Thread Benoit . Donnet
Hi, I had the same problem. I solved it by using TeX, i.e., rc('text', usetex=True) for all the text in a plot. Benoit > Hi list, > > I'm having some font weirdness using matplotlib 0.87.4 on MacOSX with > the WXAgg backend. > It's a clean install of universal builds from macpython.org. > > Fir

[Matplotlib-users] Font issue(s) MacOSX/WXAgg

2006-08-11 Thread Marin Manuel
Hi list, I'm having some font weirdness using matplotlib 0.87.4 on MacOSX with the WXAgg backend. It's a clean install of universal builds from macpython.org. First of all, when lauching for the first time (or if I delete the font cache), I get: ipython -pylab loaded rc file /Users/manuel/

Re: [Matplotlib-users] Font error

2006-08-04 Thread Jouni K Seppanen
João Fonseca <[EMAIL PROTECTED]> writes: > RuntimeError: Could not load facefile /System/Library/Fonts/ > LucidaGrande.dfont; Unknown_File_Format. I don't think there is a > problem with the font file, I checked this with Font Book and > everything is ok. Apparently matplotlib doesn't unders

Re: [Matplotlib-users] Font error

2006-08-04 Thread João Fonseca
This seems to have worked. Thanks a lot! João On 4 Aug 2006, at 13:11, Charlie Moad wrote: > On 8/4/06, João Fonseca <[EMAIL PROTECTED]> wrote: >> I have compiled version 0.87.4 of matplotlib successfully but >> whenever I try to plot anything I get the following font error: >> >> RuntimeError:

Re: [Matplotlib-users] Font error

2006-08-04 Thread Charlie Moad
On 8/4/06, João Fonseca <[EMAIL PROTECTED]> wrote: > I have compiled version 0.87.4 of matplotlib successfully but > whenever I try to plot anything I get the following font error: > > RuntimeError: Could not load facefile /System/Library/Fonts/ > LucidaGrande.dfont; Unknown_File_Format. I don't th

[Matplotlib-users] Font error

2006-08-04 Thread João Fonseca
I have compiled version 0.87.4 of matplotlib successfully but whenever I try to plot anything I get the following font error: RuntimeError: Could not load facefile /System/Library/Fonts/ LucidaGrande.dfont; Unknown_File_Format. I don't think there is a problem with the font file, I checked th