You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
1
(2) |
2
(4) |
3
(6) |
4
(20) |
5
(2) |
6
(9) |
7
(18) |
8
(14) |
9
(5) |
10
(27) |
11
(40) |
12
(9) |
13
(4) |
14
(20) |
15
(9) |
16
(8) |
17
(10) |
18
(17) |
19
(1) |
20
(5) |
21
(6) |
22
(4) |
23
(4) |
24
(6) |
25
(4) |
26
(2) |
27
|
28
(2) |
29
(10) |
30
(6) |
31
(16) |
|
|
Thanks for the pointer to the new egg installer of Enthought. Nice app, which I will use. But this is, IMHO, not what we need to move the python/numpy/scipy/mpl combo into the more mainstream use. Many potential users won't know what to do with the long list of packages that they have never heard of. I think it would be very useful to have one installer that gets a reasonable distrubtion installed (like the old Enthought installer). Isn't something like that in the works for the Mac? We can even make a python/numpy/scipy/mpl and then a seperate one that also includes ipython and wxpython, for example. Or maybe a webpage where you can just select what eggs to install. Would that be doable? Anybody else think this is what we need? Mark Date: 2007年5月11日 11:17:47 -0500 > From: Robert Kern <rob...@gm...> > Subject: Re: [Matplotlib-users] use of enthought Python for > matplotlib/numpy > To: mat...@li... > Message-ID: <f224vf$blu1ドル...@se...> > Content-Type: text/plain; charset=UTF-8 > > Giorgio Luciano wrote: > > I would add one box of donuts, since I'm trying to make my own > > distribution with numpy/scipy/matplotlib but with no success. > > and the problem is the same is for a classroom ;) If anyone knows also a > > portable distribution with this package I will add extra donuts ;) > > While we at Enthought are not updating the all-in-one installer anymore, > we are > distributing up-to-date binaries as eggs. > > http://code.enthought.com/enstaller/ > > -- > Robert Kern > > "I have come to believe that the whole world is an enigma, a harmless > enigma > that is made terrible by our own mad attempt to interpret it as though it > had > an underlying truth." > -- Umberto Eco > > > > > ------------------------------ > > Message: 8 > Date: 2007年5月11日 11:48:59 -0500 > From: "John Hunter" <jd...@gm...> > Subject: Re: [Matplotlib-users] matplolib equivalent of gnuplot's > impulse > To: Emmanuel <emm...@fa...> > Cc: mat...@li... > Message-ID: > <88e...@ma...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 5/3/07, Emmanuel <emm...@fa...> wrote: > > With gnuplot one can do a plot like that : > > > > http://www.deqnotes.net/gnuplot/images/impulses.png > > > > It is using option "with impulse". > > Is there an equivalent in matplotlib? > > > In [5]: t = arange(0.0, 2.0, 0.05) > > In [6]: s = sin(2*pi*t) > > In [7]: vlines(t, 0, s) > Out[7]: <matplotlib.collections > > > > ------------------------------ > > Message: 9 > Date: 2007年5月11日 19:05:04 +0200 > From: "Antonino Ingargiola" <tri...@gm...> > Subject: Re: [Matplotlib-users] matplolib equivalent of gnuplot's > impulse > To: "John Hunter" <jd...@gm...> > Cc: Emmanuel <emm...@fa...>, > mat...@li... > Message-ID: > <548...@ma...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > 2007年5月11日, John Hunter <jd...@gm...>: > > On 5/3/07, Emmanuel <emm...@fa...> wrote: > > > With gnuplot one can do a plot like that : > > > > > > http://www.deqnotes.net/gnuplot/images/impulses.png > > > > > > It is using option "with impulse". > > > Is there an equivalent in matplotlib? > > > > > > In [5]: t = arange(0.0, 2.0, 0.05) > > > > In [6]: s = sin(2*pi*t) > > > > In [7]: vlines(t, 0, s) > > Out[7]: <matplotlib.collections > > You are right! Very nice :-). > > ~ Antonio > > > > ------------------------------ > > Message: 10 > Date: 2007年5月11日 10:54:36 -0700 (PDT) > From: kc1...@ya... > Subject: Re: [Matplotlib-users] SVG vs PNG > To: mat...@li... > Message-ID: <214...@we...> > Content-Type: text/plain; charset=ascii > > Thanks everybody for the explanation of svg in Gimp. That makes > sense. Is there any vector based program that does what Gimp does? > > > Did you try eps rather than ps? > > > > Eric > > Yes, I tried eps. Word won't recognize that neither. > > As to the EMF format, I downloaded the package and attempted to apply the > patch. Failed - probably because it's intended for 0.85 only. I am > running 0.90 of MPL. Has anybody added EMF support to MPL 0.90successfully? > > Regards, > > > > -- > John Henry > > > > > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > ------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > End of Matplotlib-users Digest, Vol 12, Issue 20 > ************************************************ >
On Sunday 13 May 2007 6:32:56 pm Lev Givon wrote: > Received from Lev Givon on Sun, May 13, 2007 at 04:46:54PM EDT: > > Received from Darren Dale on Fri, May 11, 2007 at 05:29:01PM EDT: > > > On Friday 11 May 2007 12:12:37 pm Lev Givon wrote: > > > > Setting the font family with matplotlib.rc (or in my > > > > .matplotlib/matplotlibrc file) doesn't seem to have any effect on the > > > > font used to generate text when the usetex setting is enabled. This > > > > seems to imply that the fonts I have listed in the font.serif, > > > > font.sans-serif, and font.monospace settings (specifically, Times, > > > > Helvetica, and Courier) are not deemed to be valid from LaTeX's point > > > > of view. However, my LaTeX installation does appear to contain the > > > > psnfss files. Is there something I am overlooking? > > > > > > > > I am using matplotlib 0.90.0 and teTeX 3.0 on Linux. > > > > > > changing the font family works for me. Maybe you should try deleting > > > your .matplotlib/tex.cache and trying again. > > > > Apparently the weirdness I observed is a bit more subtle than I > > described: changing the font with the usetex setting on does indeed > > change the font used for the plot title and axis labels, but not for > > the axis ticks. Changing the font with the usetex settings off causes > > the selected font family to be used for the axis ticks. > > > > L.G. > > Ah..I see what was going on; the numerical ticks are output in LaTeX > math mode (e.g., 123ドル$) and therefore rendered in CM if the specified > fonts do not provide any math fonts. Is there a way to use LaTeX font > packages such as euler, ccfonts, and cmbright? Not at present, no.
Received from Lev Givon on Sun, May 13, 2007 at 04:46:54PM EDT: > Received from Darren Dale on Fri, May 11, 2007 at 05:29:01PM EDT: > > On Friday 11 May 2007 12:12:37 pm Lev Givon wrote: > > > Setting the font family with matplotlib.rc (or in my > > > .matplotlib/matplotlibrc file) doesn't seem to have any effect on the > > > font used to generate text when the usetex setting is enabled. This > > > seems to imply that the fonts I have listed in the font.serif, > > > font.sans-serif, and font.monospace settings (specifically, Times, > > > Helvetica, and Courier) are not deemed to be valid from LaTeX's point > > > of view. However, my LaTeX installation does appear to contain the > > > psnfss files. Is there something I am overlooking? > > > > > > I am using matplotlib 0.90.0 and teTeX 3.0 on Linux. > > > > changing the font family works for me. Maybe you should try deleting > > your .matplotlib/tex.cache and trying again. > > Apparently the weirdness I observed is a bit more subtle than I > described: changing the font with the usetex setting on does indeed > change the font used for the plot title and axis labels, but not for > the axis ticks. Changing the font with the usetex settings off causes > the selected font family to be used for the axis ticks. > > L.G. Ah..I see what was going on; the numerical ticks are output in LaTeX math mode (e.g., 123ドル$) and therefore rendered in CM if the specified fonts do not provide any math fonts. Is there a way to use LaTeX font packages such as euler, ccfonts, and cmbright? L.G.
Received from Darren Dale on Fri, May 11, 2007 at 05:29:01PM EDT: > On Friday 11 May 2007 12:12:37 pm Lev Givon wrote: > > Setting the font family with matplotlib.rc (or in my > > .matplotlib/matplotlibrc file) doesn't seem to have any effect on the > > font used to generate text when the usetex setting is enabled. This > > seems to imply that the fonts I have listed in the font.serif, > > font.sans-serif, and font.monospace settings (specifically, Times, > > Helvetica, and Courier) are not deemed to be valid from LaTeX's point > > of view. However, my LaTeX installation does appear to contain the > > psnfss files. Is there something I am overlooking? > > > > I am using matplotlib 0.90.0 and teTeX 3.0 on Linux. > > changing the font family works for me. Maybe you should try deleting > your .matplotlib/tex.cache and trying again. Apparently the weirdness I observed is a bit more subtle than I described: changing the font with the usetex setting on does indeed change the font used for the plot title and axis labels, but not for the axis ticks. Changing the font with the usetex settings off causes the selected font family to be used for the axis ticks. L.G.
> If you have a custom python you need to specifiy > /the/full/path/to/your/python. > > -aj AJ, complete accident to get offlist (apologies!) I have python located in: /usr/bin/python but there is also a python located in /opt/Plone-2.5.2/Python-2.4.4/bin To be honest, I have no idea which one Zope/Plone uses... I had assumed it was the latter, how can I check that?
> > > The same steps as with any other Python installation. You take the > Python interpreter used for your Zope instance to install the package. > > -aj Not clear, If I: % python setup.py build % python setup.py install It's just going to install in the default /usr/ locations. Are you saying that I need to run ./python setup.py build / install using the 'python' from the zope instance?
Hello, I want to use matplotlib with Plone. I have it installed on my machine, but not for the Plone instance of Python. What are the steps I need to take to install it so that it is recognized by the Plone Python instance? Thanks!
On 12/05/07, Jouni K. Sepp=E4nen <jk...@ik...> wrote: > J Oishi <jo...@am...> 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 somehow broken. My guess is that the fonts that come with OS X > have some advanced features, which should somehow be stripped out when > embedding into an eps file. Yes, this is the problem. matplotlib needs straight truetype fonts (ttf) , not the more sophisticated opentype fonts and font suitcases that come with macosX. Most fonts in standard Apple places: /Users/agn/Library/Fonts/ /Library/Fonts/ /System/Library/Fonts/ are .dfont or .otf etc... these don't work. Except e.g. sans serif InaiMathi fantasy Chalkboard which are straight .ttf, so do work. If you have e.g. Gerben Wierda's latex installation gwtex, or probably also the mactex distribution, this comes wilth various ttf versions of the system fonts. E.g I have the old gwtex based on tetex which comes with gillsans [in light heavy etc..],hoefler ( a very nice serif font),helveticaneue,lucidagrande,optima,verdana,didot and futura. In my distribution these fonts are in /usr/local/teTeX/share/texmf.gwtex/fonts/truetype/gtamacfont if you want to use fonts like this, you either have to modify the search path in font_manager.py to include the directories *directly* containiong the .ttf files, or symlink the .ttf files into the matplotlib directory holding vera.ttf etc... /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag= es/matplotlib/mpl-data/fonts/ttf I believe you can make your own .ttf files from any standard Mac .otf or .dfont using Fondu [ http://fondu.sourceforge.net/] -- again included in Wierda's teX installations. HTH. George Nurser.
On 5/12/07, Steve Schmerler <el...@gm...> wrote: > Fernando Perez wrote: > > > > Did you install pstoedit? If you do, you'll see that inkscape will > > then be able to load .eps/.ps files in a fully editable format. I've > > used it to fix decade-old plots for which the only thing around was > > the eps file. > > > > I tried to export an .svg from MPL (0.90.0rev3131) with > rcParams['text.usetex']=True and got a NotImplementedError (same for the pdf backend > with usetex, see attached log). I was wondering: Is it (technically) possible to have > .svg export capabilities with usetex-support and if so, has there been no need for > this feature so far (not that I need it urgently, just curious..)? There's actually a real MPL bug in there (not just the NotImplementedError) but I'll report it separately in a minute. > Anyway, to work with MPL-images (.ps/.eps) in Inkscape, I installed pstoedit but > loading these files doesn't work (seems not to recognize them as images). > Sorry if I'm driving the Inkscape-stuff a bit OT here, but: > What version of Inkscape & friends are you using? I'm using pstoedit 3.44, Inkscape > 0.44.1. The Latex-formula-feature of Inkscape is also not working and the error seems > related to pstoedit. Maybe someone had similar experiences ... > > Thanks for any hint! Well, unfortunately it seems that inkscape is crashing python itself... I made a trivial .eps in mpl with: In [1]: plot(range(10)) Out[1]: [<matplotlib.lines.Line2D instance at 0x8f45a8c>] In [2]: title(r'Some \LaTeX $\int_0^\infty f(\gamma) d\gamma = 1$') Out[2]: <matplotlib.text.Text instance at 0x8f4590c> In [3]: savefig('foo.eps') and when I tried to load it into inkscape, I got this very nasty traceback: *** glibc detected *** /usr/bin/python: free(): invalid pointer: 0x4081e4e0 *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6[0x400ee7cd] /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0x400f1e30] /usr/lib/skencil/Sketch/../Lib/streamfilter.so[0x404e7ce5] /usr/lib/skencil/Sketch/../Lib/streamfilter.so[0x404e7cd2] /usr/bin/python[0x8110e6a] /usr/bin/python(PyEval_EvalCodeEx+0x313)[0x80c9903] etc. At this point, this is really becoming OT for the mpl list, so I'll stop. But if anyone has the time, it might be worth sending this example to the inkscape list so they work on it and hopefully fix it. Cheers, f
Jochen Küpper <jo...@fh...> writes: >> for the PostScript backend using (I think) dvips with psfrag, and >> neither of these is easily generalizable to work with svg or pdf. > > What's the problem of using dvi2pdf, dvipdfm, dvipdfmx, or soemthing > like that for PDF? > Looks quite similar to the dvips route for Postscript to me? The dvips route is not so simple. First matplotlib creates the PostScript file with all text strings replaced by tags, and this is fed to LaTeX using \includegraphics. The psfrag package replaces the tags with LaTeX constructs, and then the dvi file is converted using dvips into the final postscript file. There is no equivalent to psfrag that works with pdf (at least none that I know of). Probably you could create a pdf file without any texts and input that in your LaTeX file, and then -- with sufficient LaTeX-fu -- render the text strings at the correct positions, and run the LaTeX file through pdflatex, because pdftex includes a pdf parser so that you can do \includegraphics{foo.pdf}. So in that sense it may be generalizable, but it won't be a direct port of the ps backend. -- Jouni K. Seppänen http://www.iki.fi/jks
On 12.05.2007, at 16:37, Jouni K. Sepp=E4nen wrote: > for the PostScript backend using (I think) dvips with psfrag, and =20 > neither of these is easily generalizable to work with svg or pdf. What's the problem of using dvi2pdf, dvipdfm, dvipdfmx, or soemthing =20 like that for PDF? Looks quite similar to the dvips route for Postscript to me? Greetings, Jochen --=20 Einigkeit und Recht und Freiheit http://www.Jochen-=20 Kuepper.de Libert=E9, =C9galit=E9, Fraternit=E9 GnuPG key: = CC1B0B4D Sex, drugs and rock-n-roll
J Oishi <jo...@am...> 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 somehow broken. My guess is that the fonts that come with OS X have some advanced features, which should somehow be stripped out when embedding into an eps file. Perhaps one way to address the problem would be to use fonttools1 to read the font file, prune the resulting data structure to include just the characters needed, and again use fonttools to output the structure into the eps file. 1 http://sourceforge.net/projects/fonttools/ -- Jouni K. Seppänen http://www.iki.fi/jks
Steve Schmerler <el...@gm...> writes: > I was wondering: Is it (technically) possible to have .svg export > capabilities with usetex-support and if so, has there been no need > for this feature so far The usetex feature is implemented for the Agg backend (i.e., png output) using dvipng, and for the PostScript backend using (I think) dvips with psfrag, and neither of these is easily generalizable to work with svg or pdf. However, some time ago I committed the beginnings of a dvi parser and a little support code in the pdf backend, enough to get a small demo almost working: http://article.gmane.org/gmane.comp.python.matplotlib.devel/2687 I have no idea how difficult it would be to get this working in the svg backend, but in the pdf backend the biggest hurdle is probably in generalizing the current font support so that the TeX fonts can be embedded. -- Jouni K. Seppänen http://www.iki.fi/jks
Fernando Perez wrote: > > Did you install pstoedit? If you do, you'll see that inkscape will > then be able to load .eps/.ps files in a fully editable format. I've > used it to fix decade-old plots for which the only thing around was > the eps file. > I tried to export an .svg from MPL (0.90.0rev3131) with rcParams['text.usetex']=True and got a NotImplementedError (same for the pdf backend with usetex, see attached log). I was wondering: Is it (technically) possible to have .svg export capabilities with usetex-support and if so, has there been no need for this feature so far (not that I need it urgently, just curious..)? Anyway, to work with MPL-images (.ps/.eps) in Inkscape, I installed pstoedit but loading these files doesn't work (seems not to recognize them as images). Sorry if I'm driving the Inkscape-stuff a bit OT here, but: What version of Inkscape & friends are you using? I'm using pstoedit 3.44, Inkscape 0.44.1. The Latex-formula-feature of Inkscape is also not working and the error seems related to pstoedit. Maybe someone had similar experiences ... Thanks for any hint! -- cheers, steve I love deadlines. I like the whooshing sound they make as they fly by. -- Douglas Adams
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 causes errors in preview, imagemagick, and ps2pdf. This occurs if I use either the PS or the TkAgg backend to create the eps file: [joishi@ebisu test]$ ps2pdf test.eps Error: /invalidfont in -dict- Operand stack: Futura-Medium --dict:11/14(L)-- Font Futura-Medium --dict: 11/14(L)-- Futura-Medium Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- -- nostringval-- 2 %stopped_push --nostringval-- -- nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop --nostringval-- 1 3 % oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- -- nostringval-- --nostringval-- 2 %stopped_push -- nostringval-- 2 4 %oparray_pop 3 4 %oparray_pop -- nostringval-- --nostringval-- --nostringval-- 7 5 % oparray_pop --nostringval-- 7 5 %oparray_pop Dictionary stack: --dict:1120/1686(ro)(G)-- --dict:0/20(G)-- --dict:75/200 (L)-- --dict:6/7(L)-- --dict:17/17(ro)(G)-- Current allocation mode is local Last OS error: 2 Current file position is 618791 AFPL Ghostscript 8.51: Unrecoverable error, exit code 1 However, if the output is NOT eps, I can create and view pdf, png, and TkAgg plots with whatever font I choose. A code sample that produces the above error on eps output is below. I hope someone might be able to shed some light on my problem. I have not been able to test the eps file on another platform; the bug may well rest on OS X outside of MPL. Unfortunately, I need eps files for a journal, and I would like to use a font other than Vera. thanks, jeff oishi #!/usr/bin/env python from matplotlib import rcParams import pylab as P import numpy as N #this makes no difference #rcParams['backend'] = 'PS' rcParams['backend'] = 'TkAgg' # this fails rcParams['font.family'] = 'sans-serif' rcParams['font.sans-serif'] = 'Futura' # this succeeds #rcParams['font.family'] = 'serif' #rcParams['font.serif'] = 'Bitstream Vera Serif' if __name__ == "__main__": x = N.linspace(0,2*N.pi,1000) y = N.sin(x) P.plot(x,y) P.xlabel('test') P.ylabel('another test') P.savefig('test.eps')
Yes, because dvipng - version works fine. On 5/11/07, Darren Dale <dd...@co...> wrote: > Is dvipng on your path? > > On Friday 11 May 2007 05:16:04 pm Michele Mazzucco wrote: > > Hi all, > > > > I'm running matplotlib on Mac OS X and I've set text.usetex to True in > > matplotlibrc, but if I try to run the tex_demo I get the error shown > > below. If I'm right it's a problem with dvipng: > > > > dvipng -version > > This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson > > dvipng 1.6 > > kpathsea version 3.5.5 > > Copyright (C) 2002-2005 Jan-Ake Larsson. > > There is NO warranty. You may redistribute this software > > under the terms of the GNU General Public License. > > For more information about these matters, see the files > > named COPYING and dvipng.c. > > > > > > Any idea? > > > > Thanks, > > Michele > > > > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packag > >es/matplotlib/__init__.py:959: UserWarning: Bad val "true" on line #123 > > "text.usetex : true # use latex for all text handling. For > > more information, see" > > in file > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/mpl-data/matplotlibrc" 'NoneType' object has no attribute > > 'group' > > val, cnt, line, fname, msg)) > > Traceback (most recent call last): > > File "/Users/nmm42/devel/workspace/PythonPlots/src/examples/tex_demo.py", > > line 31, in <module> > > savefig('tex_demo') > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/pylab.py", line 796, in savefig > > return fig.savefig(*args, **kwargs) > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/figure.py", line 727, in savefig > > self.canvas.print_figure(*args, **kwargs) > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/backends/backend_tkagg.py", line 187, in print_figure > > **kwargs) > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/backends/backend_agg.py", line 456, in print_figure > > self.draw() > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/backends/backend_agg.py", line 392, in draw > > self.figure.draw(renderer) > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/figure.py", line 569, in draw > > for a in self.axes: a.draw(renderer) > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/axes.py", line 1155, in draw > > a.draw(renderer) > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/axis.py", line 591, in draw > > tick.draw(renderer) > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/axis.py", line 175, in draw > > if self.label1On: self.label1.draw(renderer) > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/text.py", line 902, in draw > > Text.draw(self, renderer) > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/text.py", line 400, in draw > > bbox, info = self._get_layout(renderer) > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/text.py", line 246, in _get_layout > > line, self._fontproperties, ismath=self.is_math_text()) > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/backends/backend_agg.py", line 239, in get_text_width_height > > texmanager = self.get_texmanager() > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/backend_bases.py", line 415, in get_texmanager > > from matplotlib.texmanager import TexManager > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/texmanager.py", line 61, in <module> > > class TexManager: > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/texmanager.py", line 83, in TexManager > > dvipngVersion = get_dvipng_version() > > File > > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa > >ges/matplotlib/texmanager.py", line 58, in get_dvipng_version > > raise RuntimeError('Could not obtain dvipng version') > > RuntimeError: Could not obtain dvipng version > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > -- > Darren S. Dale, Ph.D. > Staff Scientist > Cornell High Energy Synchrotron Source > Cornell University > 275 Wilson Lab > Rt. 366 & Pine Tree Road > Ithaca, NY 14853 > > dd...@co... > office: (607) 255-3819 > fax: (607) 255-9001 > http://www.chess.cornell.edu >
> All I want is to: a) Insert all of the plots I create with MPL onto a Word document. If you're fortunate enough to be using the wx backend, there is a Copy_to_Clipboard() method which works great: In a wx App, Ctrl-C can easily be bound to copy the figure to the clipboard, then paste it into apps such as Word. I tend to find better results from saving a higher-resolution PNG and inserting that into documents, but this copy-and-paste works great for quick prints (whereas printing directly from a wxApp seems to be very fragile and change with every wxPython release) I think pylab may not give you access to the Copy_to_Clipboard() method. --Matt Newville
On Friday 11 May 2007 12:12:37 pm Lev Givon wrote: > Setting the font family with matplotlib.rc (or in my > .matplotlib/matplotlibrc file) doesn't seem to have any effect on the > font used to generate text when the usetex setting is enabled. This > seems to imply that the fonts I have listed in the font.serif, > font.sans-serif, and font.monospace settings (specifically, Times, > Helvetica, and Courier) are not deemed to be valid from LaTeX's point > of view. However, my LaTeX installation does appear to contain the > psnfss files. Is there something I am overlooking? > > I am using matplotlib 0.90.0 and teTeX 3.0 on Linux. changing the font family works for me. Maybe you should try deleting your .matplotlib/tex.cache and trying again.
Is dvipng on your path? On Friday 11 May 2007 05:16:04 pm Michele Mazzucco wrote: > Hi all, > > I'm running matplotlib on Mac OS X and I've set text.usetex to True in > matplotlibrc, but if I try to run the tex_demo I get the error shown > below. If I'm right it's a problem with dvipng: > > dvipng -version > This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson > dvipng 1.6 > kpathsea version 3.5.5 > Copyright (C) 2002-2005 Jan-Ake Larsson. > There is NO warranty. You may redistribute this software > under the terms of the GNU General Public License. > For more information about these matters, see the files > named COPYING and dvipng.c. > > > Any idea? > > Thanks, > Michele > > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packag >es/matplotlib/__init__.py:959: UserWarning: Bad val "true" on line #123 > "text.usetex : true # use latex for all text handling. For > more information, see" > in file > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/mpl-data/matplotlibrc" 'NoneType' object has no attribute > 'group' > val, cnt, line, fname, msg)) > Traceback (most recent call last): > File "/Users/nmm42/devel/workspace/PythonPlots/src/examples/tex_demo.py", > line 31, in <module> > savefig('tex_demo') > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/pylab.py", line 796, in savefig > return fig.savefig(*args, **kwargs) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/figure.py", line 727, in savefig > self.canvas.print_figure(*args, **kwargs) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/backends/backend_tkagg.py", line 187, in print_figure > **kwargs) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/backends/backend_agg.py", line 456, in print_figure > self.draw() > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/backends/backend_agg.py", line 392, in draw > self.figure.draw(renderer) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/figure.py", line 569, in draw > for a in self.axes: a.draw(renderer) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/axes.py", line 1155, in draw > a.draw(renderer) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/axis.py", line 591, in draw > tick.draw(renderer) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/axis.py", line 175, in draw > if self.label1On: self.label1.draw(renderer) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/text.py", line 902, in draw > Text.draw(self, renderer) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/text.py", line 400, in draw > bbox, info = self._get_layout(renderer) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/text.py", line 246, in _get_layout > line, self._fontproperties, ismath=self.is_math_text()) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/backends/backend_agg.py", line 239, in get_text_width_height > texmanager = self.get_texmanager() > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/backend_bases.py", line 415, in get_texmanager > from matplotlib.texmanager import TexManager > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/texmanager.py", line 61, in <module> > class TexManager: > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/texmanager.py", line 83, in TexManager > dvipngVersion = get_dvipng_version() > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa >ges/matplotlib/texmanager.py", line 58, in get_dvipng_version > raise RuntimeError('Could not obtain dvipng version') > RuntimeError: Could not obtain dvipng version > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Darren S. Dale, Ph.D. Staff Scientist Cornell High Energy Synchrotron Source Cornell University 275 Wilson Lab Rt. 366 & Pine Tree Road Ithaca, NY 14853 dd...@co... office: (607) 255-3819 fax: (607) 255-9001 http://www.chess.cornell.edu
Hi all, I'm running matplotlib on Mac OS X and I've set text.usetex to True in matplotlibrc, but if I try to run the tex_demo I get the error shown below. If I'm right it's a problem with dvipng: dvipng -version This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson dvipng 1.6 kpathsea version 3.5.5 Copyright (C) 2002-2005 Jan-Ake Larsson. There is NO warranty. You may redistribute this software under the terms of the GNU General Public License. For more information about these matters, see the files named COPYING and dvipng.c. Any idea? Thanks, Michele /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/__init__.py:959: UserWarning: Bad val "true" on line #123 "text.usetex : true # use latex for all text handling. For more information, see" in file "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl-data/matplotlibrc" 'NoneType' object has no attribute 'group' val, cnt, line, fname, msg)) Traceback (most recent call last): File "/Users/nmm42/devel/workspace/PythonPlots/src/examples/tex_demo.py", line 31, in <module> savefig('tex_demo') File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py", line 796, in savefig return fig.savefig(*args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/figure.py", line 727, in savefig self.canvas.print_figure(*args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py", line 187, in print_figure **kwargs) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", line 456, in print_figure self.draw() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", line 392, in draw self.figure.draw(renderer) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/figure.py", line 569, in draw for a in self.axes: a.draw(renderer) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axes.py", line 1155, in draw a.draw(renderer) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py", line 591, in draw tick.draw(renderer) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py", line 175, in draw if self.label1On: self.label1.draw(renderer) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/text.py", line 902, in draw Text.draw(self, renderer) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/text.py", line 400, in draw bbox, info = self._get_layout(renderer) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/text.py", line 246, in _get_layout line, self._fontproperties, ismath=self.is_math_text()) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", line 239, in get_text_width_height texmanager = self.get_texmanager() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backend_bases.py", line 415, in get_texmanager from matplotlib.texmanager import TexManager File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/texmanager.py", line 61, in <module> class TexManager: File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/texmanager.py", line 83, in TexManager dvipngVersion = get_dvipng_version() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/texmanager.py", line 58, in get_dvipng_version raise RuntimeError('Could not obtain dvipng version') RuntimeError: Could not obtain dvipng version
On 5/11/07, kc1...@ya... <kc1...@ya...> wrote: > Bingo! My prayer appears to have been answered. > > inkscape has no trouble reading the .svg files created by MPL, and Word has no trouble reading the .eps files created by inkscape. So, at least I can use it to preserve the vectors. Too bad inkscape doesn't read .eps directly (complaining...complaining....) :=) Did you install pstoedit? If you do, you'll see that inkscape will then be able to load .eps/.ps files in a fully editable format. I've used it to fix decade-old plots for which the only thing around was the eps file. > Thanks, Fernando. Glad it helped. Cheers, f
Sorry. Just discover that saving the file in emf format under Inkscape and then import into Word works even better. The eps engine in Word is really bad. Hope that this info is helpful to others who are stuck in an Office world like me. > -----Original Message----- > From: mat...@li... > [mailto:mat...@li...] On > Behalf Of kc1...@ya... > Sent: Friday, May 11, 2007 1:39 PM > To: mat...@li... > Subject: [Matplotlib-users] This is just so perfect! (was: > Re: SVG vs PNG) > > > This is simply too good to be true. I played with > manupulating MPL plots using Inkscape and man, somebody ought > to include this in the MPL FAQ. I can move everything > around by elements, touch-up or remove things I don't want, > scale it, rotate it, you name it. > > And then I can save the file in .eps and include into Office > - and I don't loose any quality. > > Perfect! > > Here's what I learned: > > a) Create the plot under MPL, saving the file in .svg format, > and use the figsize argument to figure to create a plot of > the proper size > > b) Use Inkscape to open the .svg file and manupulate it. > Save in .eps format. > > c) Import the .eps file into Office. > > d) Be happy and become famous and rich. (not) > > Thanks again for all of the suggestions and tips. > > Regards, > -- John Henry
This is simply too good to be true. I played with manupulating MPL plots using Inkscape and man, somebody ought to include this in the MPL FAQ. I can move everything around by elements, touch-up or remove things I don't want, scale it, rotate it, you name it. And then I can save the file in .eps and include into Office - and I don't loose any quality. Perfect! Here's what I learned: a) Create the plot under MPL, saving the file in .svg format, and use the figsize argument to figure to create a plot of the proper size b) Use Inkscape to open the .svg file and manupulate it. Save in .eps format. c) Import the .eps file into Office. d) Be happy and become famous and rich. (not) Thanks again for all of the suggestions and tips. Regards, > -----Original Message----- > From: mat...@li... > [mailto:mat...@li...] On > Behalf Of kc1...@ya... > Sent: Friday, May 11, 2007 12:23 PM > To: mat...@li... > Subject: Re: [Matplotlib-users] SVG vs PNG > > > Bingo! My prayer appears to have been answered. > > inkscape has no trouble reading the .svg files created by > MPL, and Word has no trouble reading the .eps files created > by inkscape. So, at least I can use it to preserve the > vectors. Too bad inkscape doesn't read .eps directly > (complaining...complaining....) :=) > > inkscape treats everything as objects and allows you to > ungroup the plots into elements and then you can play with > each of the elements individually. When I am done, I can > then insert into Word. Too bad it doesn't allow me to paste > the objects directly over to Windows but I am not complaining. > > Thanks, Fernando. > > > -----Original Message----- > > From: Fernando Perez [mailto:fpe...@gm...] > > Sent: Friday, May 11, 2007 11:05 AM > > To: kc1...@ya... > > Cc: mat...@li... > > Subject: Re: [Matplotlib-users] SVG vs PNG > > > > > > On 5/11/07, kc1...@ya... > > <kc1...@ya...> wrote: > > > Thanks everybody for the explanation of svg in Gimp. That makes > > > sense. Is there any vector based program that does what > Gimp does? > > > > Try inkscape. I've used it successfully for simple things, > > though I've never tried to handle a MPL SVG file with it. > > > > cheers, > > > > f > > > > -- > John Henry > -- John Henry
Actually, Gimp is the problem. It's obvious they don't have a very good rendering engine. The plots looks very good under Inkscape. > The quality of the svg plot depends in large plot on the svg renderer > -- perhaps word doesn't do a good job rendering SVG? The > matplotlib PNG files look good because agg is a good rendering engine. > > JDH > -- John Henry
I've sorted it out. Thanks John. Michele On 5/11/07, Michele Mazzucco <mic...@gm...> wrote: > John, > > thanks for your reply. Unfortunately it does not work for Axes (at > least for me). > I've got 3 axes (like the finance sample) and the ylabel appears only > for the last one and only if I use ylabel(...) (yes, I'm using > ax1.set_ylabel, ax2.set_yabel and ax3.set_ylabel) > Any idea? > > Michele > > On 5/11/07, John Hunter <jd...@gm...> wrote: > > On 5/11/07, Michele Mazzucco <mic...@gm...> wrote: > > > Hi all, > > > > > > when using subplot is very easy to plot an ylabel for each subplot > > > (see http://matplotlib.sourceforge.net/screenshots/subplot_demo_large.png > > > for example), however I have not found any sample to accomplish the > > > same goal when using sub-figures obtained as > > > > > > ax1 = axes(...) > > > like http://matplotlib.sourceforge.net/screenshots/finance_work2_small.png, > > > for example. > > > > > > With gnuplot is very easy. Is there any way to achieve the same result > > > with matplotlib? > > > > Not sure I understand your question, but > > > > ax.set_ylabel('my label') > > > > will work for Axes or Subplots (a Subplot is an Axes instance...) > > > > JDH > > >