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
(10) |
2
(6) |
3
(13) |
4
(3) |
5
(10) |
6
(4) |
7
(2) |
8
(15) |
9
(10) |
10
(44) |
11
(17) |
12
(9) |
13
(2) |
14
(2) |
15
(4) |
16
(8) |
17
(13) |
18
(11) |
19
(12) |
20
|
21
|
22
(10) |
23
(10) |
24
(11) |
25
(11) |
26
(9) |
27
(1) |
28
|
29
(15) |
30
(14) |
31
(7) |
|
|
|
On 2005年8月08日, John Hunter apparently wrote:=20 > post the complete script and output file (test.png). Also include=20 > the output of running your script with --verbose-debug-annoying.=20 Script and script output below. Figures here: http://nw08.american.edu/~aisaac/temp.htm (I assume you don't want these sent to the list.) Cheers, Alan ++++++++++++++++++ Script ++++++++++++++++++++++++++++ #-*-coding:latin-1-*- #see http://www.scipy.org/wikis/topical_software/UsingTex from matplotlib import rc from matplotlib.numerix import arange, cos, pi from pylab import figure, axes, plot, xlabel, ylabel, title, \ =09 grid, savefig, show rc('text', usetex=3DTrue) t =3D arange(0.0, 1.0+0.01, 0.01) s =3D cos(2*2*pi*t)+2 figure(1) #works fine ax =3D axes([0.15, 0.1, 0.8, 0.7]) plot(t, s)=20 xlabel(r'time ($s$)',fontsize=3D16) ylabel(r'\it{voltage} ($m$)',fontsize=3D16) title(r"\TeX\ is Number $\sum_{n=3D1}^\infty{-e^{i\pi}}/{2^n}$!", =09 fontsize=3D16, color=3D'r') savefig('/temp1') figure(2) #use bold on ylabel -> missing text ax =3D axes([0.15, 0.1, 0.8, 0.7]) plot(t, s)=20 xlabel(r'time ($s$)',fontsize=3D16) ylabel(r'\bf{voltage} ($m$)',fontsize=3D16) title(r"\TeX\ is Number $\sum_{n=3D1}^\infty{-e^{i\pi}}/{2^n}$!", =09 fontsize=3D16, color=3D'r') savefig('/temp2') figure(3) #use \frac in title -> missing superscripts ax =3D axes([0.15, 0.1, 0.8, 0.7]) plot(t, s)=20 xlabel(r'time ($s$)',fontsize=3D16) ylabel(r'\it{voltage} ($m$)',fontsize=3D16) title(r"\TeX\ is Number $\sum_{n=3D1}^\infty\frac{-e^{i\pi}}{2^n}$!", =09 fontsize=3D16, color=3D'r') savefig('/temp3') figure(4) # *add* \displaystyle in title -> missing title ax =3D axes([0.15, 0.1, 0.8, 0.7]) plot(t, s)=20 xlabel(r'time ($s$)',fontsize=3D16) ylabel(r'\it{voltage} ($m$)',fontsize=3D16) title(r"\TeX\ is Number $\displaystyle\sum_{n=3D1}^\infty\frac{-e^{i\pi}}{2= ^n}$!", =09 fontsize=3D16, color=3D'r') savefig('/temp4') show() ++++++++++++++++++ Script Output +++++++++++++++++++++ matplotlib data path C:\Python24\share\matplotlib $HOME=3DC:\Documents and Settings\aisaac CONFIGDIR=3DC:\Documents and Settings\aisaac\.matplotlib loaded rc file C:\Python24\share\matplotlib\matplotlibrc matplotlib version 0.83.2 verbose.level debug-annoying interactive is False platform is win32 loaded modules: ['_bisect', '__future__', 'copy_reg', 'sre_compile', 'distu= tils', 'locale', '_sre', '__main__', 'site', '__builtin__', 'datetime', 'ma= tplotlib.tempfile', 'encodings', 'os.path', 'pytz.datetime', 'sre_constants= ', 'distutils.string', 'dateutil', 'matplotlib.datetime', 'strop', '_random= ', 'tempfile', 'errno', 'matplotlib.warnings', 'binascii', 'encodings.codec= s', 'matplotlib.sys', 're', 'ntpath', 'pytz.sys', 'UserDict', 'distutils.sy= sconfig', 'encodings.exceptions', 'nt', 'pytz.sets', 'math', 'stat', 'zipim= port', 'string', 'warnings', 'encodings.types', '_codecs', 'distutils.os', = 'matplotlib', 'encodings.cp1252', 'sys', 'pytz.tzinfo', 'pytz', 'matplotlib= .__future__', 'codecs', 'distutils.re', 'matplotlib.pytz', 'types', 'matplo= tlib.dateutil', '_locale', 'matplotlib.os', 'thread', 'sre', 'bisect', 'mat= plotlib.distutils', 'signal', 'distutils.errors', 'random', 'linecache', 'i= tertools', 'encodings.aliases', 'sets', 'exceptions', 'sre_parse', 'pytz.bi= sect', 'distutils.sys', 'os'] numerix Numeric 23.8 font search path ['C:\\Python24\\share\\matplotlib'] trying fontname C:\Python24\share\matplotlib\cmsy10.ttf trying fontname C:\Python24\share\matplotlib\VeraMoBI.ttf trying fontname C:\Python24\share\matplotlib\cmex10.ttf trying fontname C:\Python24\share\matplotlib\VeraBI.ttf trying fontname C:\Python24\share\matplotlib\Vera.ttf loaded ttfcache file C:\Documents and Settings\aisaac\.matplotlib\ttffont.c= ache backend TkAgg version 8.4 FigureCanvasAgg.print_figure FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font =09findfont failed Lucida Grande =09findfont found Verdana, normal, normal 500, normal, 12.0 findfont returning C:\WINNT\Fonts\verdana.ttf RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font =09findfont failed Lucida Grande =09findfont found Verdana, normal, normal 500, normal, 16.0 findfont returning C:\WINNT\Fonts\verdana.ttf RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font FigureCanvasAgg.print_figure FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font FigureCanvasAgg.print_figure FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font FigureCanvasAgg.print_figure FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font
Again, sorry if this posts twice. I have never created a patch before. I'm just attaching the unified diff. Let me know better ways to proceed. Thank you, Alan Isaac ============ DOCUMENTATION PATCH (texmanager.py) =========== --- texmanager.py.orig Mon Aug 08 21:28:14 2005 +++ texmanager.py Mon Aug 08 21:39:21 2005 @@ -1,7 +1,7 @@ """ This module supports embedded TeX expressions in matplotlib via dvipng and dvips for the raster and postscript backends. The tex and -dvipng/dvips information is cached in ~/.tex.cache for reuse between +dvipng/dvips information is cached in ~/.matplotlib/tex.cache for reuse between sessions Requirements: @@ -26,8 +26,10 @@ Z = self.texmanager.get_rgba(s, size=12, dpi=80, rgb=(1,0,0)) To enable tex rendering of all text in your matplotlib figure, set -text.usetex in your matplotlibrc file -(http://matplotlib.sf.net/matplotlibrc) +text.usetex in your matplotlibrc file (http://matplotlib.sf.net/matplotlibrc) +or include these two lines in your script: +from matplotlib import rc +rc('text', usetex=True) """
Apologies if this posts twice: I haven't seen it on the list. Script and output below. Pictures at http://nw08.american.edu/~aisaac/temp.htm Cheers, Alan Isaac ++++++++++++++++++++++ Script ++++++++++++++++++ #-*-coding:latin-1-*- #see http://www.scipy.org/wikis/topical_software/UsingTex from matplotlib import rc from matplotlib.numerix import arange, cos, pi from pylab import figure, axes, plot, xlabel, ylabel, title, \ grid, savefig, show rc('text', usetex=True) t = arange(0.0, 1.0+0.01, 0.01) s = cos(2*2*pi*t)+2 figure(1) #works fine ax = axes([0.15, 0.1, 0.8, 0.7]) plot(t, s) xlabel(r'time ($s$)',fontsize=16) ylabel(r'\it{voltage} ($m$)',fontsize=16) title(r"\TeX\ is Number $\sum_{n=1}^\infty{-e^{i\pi}}/{2^n}$!", fontsize=16, color='r') savefig('/temp1') figure(2) #use bold on ylabel -> missing text ax = axes([0.15, 0.1, 0.8, 0.7]) plot(t, s) xlabel(r'time ($s$)',fontsize=16) ylabel(r'\bf{voltage} ($m$)',fontsize=16) title(r"\TeX\ is Number $\sum_{n=1}^\infty{-e^{i\pi}}/{2^n}$!", fontsize=16, color='r') savefig('/temp2') figure(3) #use \frac in title -> missing superscripts ax = axes([0.15, 0.1, 0.8, 0.7]) plot(t, s) xlabel(r'time ($s$)',fontsize=16) ylabel(r'\it{voltage} ($m$)',fontsize=16) title(r"\TeX\ is Number $\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!", fontsize=16, color='r') savefig('/temp3') figure(4) # *add* \displaystyle in title -> missing title ax = axes([0.15, 0.1, 0.8, 0.7]) plot(t, s) xlabel(r'time ($s$)',fontsize=16) ylabel(r'\it{voltage} ($m$)',fontsize=16) title(r"\TeX\ is Number $\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!", fontsize=16, color='r') savefig('/temp4') show() ++++++++++++++++++++++ Script Output +++++++++++ FigureCanvasAgg.print_figure FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font findfont failed Lucida Grande findfont found Verdana, normal, normal 500, normal, 12.0 findfont returning C:\WINNT\Fonts\verdana.ttf RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font findfont failed Lucida Grande findfont found Verdana, normal, normal 500, normal, 16.0 findfont returning C:\WINNT\Fonts\verdana.ttf RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font FigureCanvasAgg.print_figure FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font FigureCanvasAgg.print_figure FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font FigureCanvasAgg.print_figure FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg.points_to_pixels RendererAgg.points_to_pixels RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font RendererAgg._get_agg_font
Hi all: I've added a new cookbook wiki item on plotting data on map projections with the basemap toolkit. http://www.scipy.org/wikis/topical_software/Maps Comments are welcome. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/CDC R/CDC1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
Hi, Henry Proudhon wrote: > Dear Matplotlib users, > > I'm new to this list as well as matplot lib, but already really > impressed by this library. > I was wondering if there was an easy way to plot a simple (or not) fem > mesh in the deformed (or not) state > before starting to write such a function, I though it would be a good > idea to ask to the list. there has been a discussion about that topic some weeks ago on the scipy mailing list. Two proposals were given for how to get a structured mesh from some irregularly placed points. The first calculates a 2D surface spline: http://www.scipy.org/mailinglists/mailman?fn=scipy-user/2005-July/004887.html The second does a triangulation. Though I didn't understand what to do with the triangulated data, as the result is still not an orthogonal grid. I'd be interested in some code that uses triangulation and plots through matplotlib. Up to now I'm using the SurfaceMap module of VTK. http://www.scipy.org/mailinglists/mailman?fn=scipy-user/2005-July/004855.html Regards, Christian
>>>>> "Alex" == Alex Rada <ale...@ya...> writes: Alex> Hi all, changing from 0.82 to 0.83 and using latex fonts, Alex> the "0" label disappeared from ticks! maybe I'm wrong in Alex> something, but using the command "yticks([0.,0.2,etc...])" Alex> the problem remains. Complete example please. Does this problem appear on postscript or *Agg output, or both? JDH
This is James Phillips of zunzun.com, I'm mostly finished with converting the site from DISLIN to matplotlib. I ran into an axis labeling question and do not know the best way to solve the problem. If someone more experienced with matplotlib can advise me, I will be most appreciative. If I construct a simple scatterplot, depending on the magnitude of the values being plotted the Y axis label can be pushed off the graph. For example, in the first scatterplot below the Y axis label is fine yet in the second it is pushed off the plot - ostensibly by the larger values on the Y axis data label as the plot limits are forced to be identical. import matplotlib matplotlib.use('GTKAgg') import pylab pylab.xlabel('X Data', multialignment='center') pylab.ylabel('Y Data', multialignment='center', rotation=90) pylab.scatter([0.1, 1.0], [0.1, 1.0]) pylab.subplots_adjust(left=0.07) pylab.show() pylab.xlabel('X Data', multialignment='center') pylab.ylabel('Y Data', multialignment='center', rotation=90) pylab.scatter([1000, 5000], [1000, 5000]) pylab.subplots_adjust(left=0.07) pylab.show() Since I will not know in advance the values users are plotting, I cannot directly set the plot limits as far as I know. Any advice on how best to handle this problem? I could try to calculate a best limit for each plot, or simply use a single large value such that the Y axis label is never pushed off the graph. Any other advice or ideas? James Phillips http://zunzun.com
>>>>> "Steve" == Steve Schmerler <el...@gm...> writes: Steve> I still can plot as root, but not as user!? If it's some That I find bizarre. Could it be a PATH or an LD_LIBRARY_PATH issue; ie, you and root are using different libraries. Have you customized either of these variables? For example, if you do the following as yourself and root, do you get the same link information > ldd /usr/lib/python2.4/site-packages/matplotlib/_nc_transforms.so > ldd /usr/lib/python2.4/site-packages/Numeric/_numpy.so Steve> kind of permission problem it would be good to know Steve> something about "../Objects/moduleobject.c". I there a way Steve> to get IPython to print the full path? This is part of python -- if you install python-dev you should be able to find the header on your system, eg at /usr/include/python2.4/moduleobject.h Steve> Uh, I didn't build TkAgg, So I set BUILD_TKAGG = 'auto', Steve> but Steve> Do I have to install something besides python-tk? You need the tk8.4-dev and maybe the tcl8.4-dev headers. You may have a different version number. Steve> I hope we can sort this out. Two other things to try. 1) See if we can narrow down where the segfault is occurring by trying to import the matplotlib modules separately import matplotlib.ft2font import matplotlib._transforms import matplotlib._agg import matplotlib.backends._backend_agg import matplotlib.backends._gtkagg 2) Compile matplotlib with VERBOSE = True in setup.py. This will cause the extension code to generate lots of messages, and we may be able to narrow down precisely where the crash is occurring. JDH
>>>>> "Alan" == Alan G Isaac <ai...@am...> writes: Alan> On 2005年8月06日, John Hunter apparently wrote: >> What version of dvipng are you using, Alan? I haven't tested >> with anything < 1.5 Alan> I have the version 1.6 distributed with MiKTeX. Alan> I have found a few things. (This is TKAgg only; the Alan> backend_ps works fine!) To keep things as simple as possible, test with the Agg backend import matplotlib matplotlib.use('Agg') import pylab as p p.rc('text', usetex=True) ...etc... p.savefig('test') p.show() and post the complete script and output file (test.png). Also include the output of running your script with --verbose-debug-annoying. That way I can verify whether your problems are platform specific (win32) or generic. Alan> Focusing on the example at Alan> http://www.scipy.org/wikis/topical_software/UsingTex Alan> - On the xlabel and ylabel, if I use \bf I get problems Alan> (same for \textbf) but with \it I can see the axis labels. Alan> It looks like a spacing problem? - If I delete the Alan> \displaystyle command in the title, it almost displays, but Alan> all the superscripts are missing in the fraction. If I then Alan> delete \frac I see everything. Again, it looks like a Alan> spacing problem? Alan> So actually I am getting substantial functionality at this Alan> point, as long as I avoid all bold, all displaystyle math, Alan> and \frac. If you include these commands in a pure latex document, do they work as expected? Just verifying that you have a complete LaTeX installation.... Alan> - Can I do the following (i.e., is the syntax right)? Alan> rc('text.tex', engine='latex') rc('font.latex', Alan> package='type1cm') Will this over-ride the settings in Alan> matplotlibrc? Yes they will; they look right. Alan> ~/.tex.cache for reuse between sessions. Does the tilde Alan> here mean the .matplotlib directory *below* the home Alan> directory? In UNIX, ~ is an alias for HOME Alan> Because that's where I find tex.cache (i.e., not right below Alan> HOME). (Note: that's tex.cache, no leading dot in conflict Alan> with the docs, but I assume that's ok because It should be HOME/.matplotlib/tex.cache, where HOME is something like c:\Documents and Settings\youacct\.matplotlib\tex.cache. I'm working from memory here... The new .matplotlib dir should have a leading "dot". The subdirs and files in this directory (eg matplotlibrc, tex.cache) should not. If the docs are misleading, please provide a patch or a pointer to where the docs are wrong. Alan> backend_ps works and I am getting some TKAgg functionality Alan> as well?) - Finally, should the tex.cache directory remain Alan> full of old cached images? Forever? Currently it is forever. You can always flush this directory if you want to rebuild it. JDH
The problem seems to be alleviated for me now from you latest commit, John. Thanks, Fernando Perez wrote: > Charles Moad wrote: > >> I would consider this a python bug, and I just added a quick fix for me. >> >> Changed line 511 in Prompts.py to say >> if self.Pprint and hasattr(arg, '__repr__'): >> instead of >> if self.Pprint: >> >> You probably don't want to add this for everything, but would it be >> possible to override the display method of the CachedOutput when the >> pylab option is specified? Further, you could only do this for python >> v.2.4. > > > Since it's really a python bug, I'd rather see it fixed upstream than > adding (yet another) hack in ipython to defend against it. But I also > don't want ipython to crash for users, that's for sure. > > Let's see if John can get his pycxx animals to grow a __repr__, which > will fix the issue. If that doesn't work, I'll go ahead and stick in a > version-specific defense layer into Prompts.py to at least help the > ipython users, while python fixes the problem upstream. > > Cheers, > > f
Hi, I'm working with support from the Python Software Foundation to develop an open source course on basic software development skills for people with backgrounds in science and engineering. I have a beta version of the course notes ready for review, and would like to pull in people in sci&eng to look it over and give me feedback. If you know anyone who fits this bill (particularly people who might be interested in following along with a trial run of the course this fall), I'd be grateful for pointers. Thanks, Greg Wilson
Steve Schmerler wrote: > I upgraded to IPython 0.6.15 (installed from source), the former 0.6.13 > was apt-get installed on Debian (sarge, stable). > > Actually, it is a segfault, and it kills the IPython shell. > > ############################################################################### > > elcorto@bach:~/Install/IPython$ ipython -pylab > /usr/lib/python2.3/site-packages/IPython/Shell.py:627: > GtkDeprecationWarning: gtk.timeout_add is deprecated, use > gobject.timeout_add instead > self.gtk.timeout_add(self.TIMEOUT, self.on_timer) > Python 2.3.5 (#2, May 4 2005, 08:51:39) > Type "copyright", "credits" or "license" for more information. > > IPython 0.6.15 -- An enhanced Interactive Python. > ? -> Introduction to IPython's features. > %magic -> Information about IPython's 'magic' % functions. > help -> Python's own help system. > object? -> Details about 'object'. ?object also works, ?? prints more. > > Welcome to pylab, a matplotlib-based Python environment. > For more information, type 'help(pylab)'. > > In [1]: plot([1,2,3]) > --------------------------------------------------------------------------- > exceptions.SystemError Traceback (most > recent call last) > > > SystemError: ../Objects/moduleobject.c:48: bad argument to internal function > Speicherzugriffsfehler > elcorto@bach:~/Install/IPython$ > > ################################################################################# > > At least "Speicherzugriffsfehler" is german for segfault :) > > I still can plot as root, but not as user!? If it's some kind of > permission problem it would be good to know something about > "../Objects/moduleobject.c". I there a way to get IPython to print the > full path? No, unfortunately the string: SystemError: ../Objects/moduleobject.c:48: bad argument to internal function is being generated internally, so the path has already been truncated by somebody else. IPython has no access to any more info than this, as that string is the value of the exception given to the ipython traceback handler. You can try setting '%xmode verbose' in ipython to produce more verbose tracebacks, but I doubt we'll see anything more meaningful in this particular case (since there don't seem to be any frames properly generated in the traceback). This is really strange. I can only suggest trying some of the other backends (QtAgg, TKAgg, WXAgg) and seeing what happens. But we're really debugging in the dark here. > BTW, Fernando mentioned earlier that this GtkDeprecationWarning would go > away if I upgrade to IPython 0.6.15 but unfortunately it's still there. Sorry, I should have clarified that this change was made to SVN, _right after_ we released .15. So only an SVN install would make it go away (or manually applying the relevant fix). If it really bothers you, I can track down the exact changes needed for you. Cheers, f
John Hunter wrote: >>>>>>"Steve" == Steve Schmerler <el...@gm...> writes: > > > Steve> Hi I recently posted something about segfaults I get when > Steve> plotting. Now here is a little update and I really hope > Steve> someone has an idea how I can solve this problem. > > Steve> I'm running IPython 0.6.13 on a Debian box, installed the > Steve> recent mpl 0.83.2 from source, GTKAgg backend. > > Steve> 1) > > Steve> When I start ipython (as normal user) with the -pylab > Steve> option and then say > > Steve> plot([1,2,3]) > > Steve> I get > > Steve> In [1]: plot([1,2,3]) > Steve> --------------------------------------------------------------------------- > Steve> exceptions.SystemError Traceback (most recent call last) > > > Steve> SystemError: ../Objects/moduleobject.c:48: bad argument to > Steve> internal function > > You say this is a segfault, but it looks like an exception. Does this > actually kill the ipython shell? Is this a full posting of the > traceback? I upgraded to IPython 0.6.15 (installed from source), the former 0.6.13 was apt-get installed on Debian (sarge, stable). Actually, it is a segfault, and it kills the IPython shell. ############################################################################### elcorto@bach:~/Install/IPython$ ipython -pylab /usr/lib/python2.3/site-packages/IPython/Shell.py:627: GtkDeprecationWarning: gtk.timeout_add is deprecated, use gobject.timeout_add instead self.gtk.timeout_add(self.TIMEOUT, self.on_timer) Python 2.3.5 (#2, May 4 2005, 08:51:39) Type "copyright", "credits" or "license" for more information. IPython 0.6.15 -- An enhanced Interactive Python. ? -> Introduction to IPython's features. %magic -> Information about IPython's 'magic' % functions. help -> Python's own help system. object? -> Details about 'object'. ?object also works, ?? prints more. Welcome to pylab, a matplotlib-based Python environment. For more information, type 'help(pylab)'. In [1]: plot([1,2,3]) --------------------------------------------------------------------------- exceptions.SystemError Traceback (most recent call last) SystemError: ../Objects/moduleobject.c:48: bad argument to internal function Speicherzugriffsfehler elcorto@bach:~/Install/IPython$ ################################################################################# At least "Speicherzugriffsfehler" is german for segfault :) I still can plot as root, but not as user!? If it's some kind of permission problem it would be good to know something about "../Objects/moduleobject.c". I there a way to get IPython to print the full path? BTW, Fernando mentioned earlier that this GtkDeprecationWarning would go away if I upgrade to IPython 0.6.15 but unfortunately it's still there. > > What happens if you run the following script outside of ipython > > from pylab import plot, show > plot([1,2,3]) > show() > > with > > > python test.py --verbose-helpful > > Does this create a proper figure window -- please post all output from > the script. > This works, a window shows up. ################################################################################# elcorto@bach:~/Install/IPython$ python test.py --verbose-helpful matplotlib data path /usr/share/matplotlib $HOME=/home/elcorto CONFIGDIR=/home/elcorto/.matplotlib loaded rc file /usr/share/matplotlib/matplotlibrc matplotlib version 0.83.2 verbose.level helpful interactive is False platform is linux2 numerix Numeric 23.8 font search path ['/usr/share/matplotlib'] loaded ttfcache file /home/elcorto/.matplotlib/ttffont.cache backend GTKAgg version 2.6.1 ################################################################################# > > Steve> 2) > > Steve> However when I change to root > > Steve> su <pwd> > > Steve> ipython -pylab > > Steve> then plotting works fine!? > > Perhaps this has something to do with having permission to connect to > the X11 server? As a normal user, can you launch graphical apps from > the shell, eg > > > gedit& > I can do that. > > Have you done anything unusual with your system, changed the default > permission bits, done a chroot, etc? What linux distro are you > running? > > > Steve> I have no idea where this moduleobject.c lives or to which > Steve> application it belongs. > > Steve> 2) > > Steve> If I try the same with the normal python interpreter > > Steve> python > > Steve> from pylab import *; ion() plot([1,2,3]) > > Steve> a plot window pops up but shows no picture (no matter if > Steve> I'm root or not). > > Debian sarge, stable. I'm not a Linux expert but it's a pretty fresh installation (on my computer at work) and I can't see what I should have done wrong. In fact I installed mpl on my (the same) Debian at home and it works fine there (OK it's mpl 0.81 and IPython 0.6.13). > GTKAgg is not expected to work unless you are in a special threaded > environment like ipython with -gthread or -pylab. Try the same with > the TkAgg backend (edit your rc file) and let me know what happens. > Uh, I didn't build TkAgg, So I set BUILD_TKAGG = 'auto', but python setup.py build fails: [...] src/_tkagg.cpp:26:19: tk.h: Datei oder Verzeichnis nicht gefunden (file not found) [...] error: command 'gcc' failed with exit status 1 Do I have to install something besides python-tk? > The last thing I'd advise is upgrading your ipython to the latest. > > I've never seen this one before so I'm flying by the seat of my pants. > > I hope we can sort this out. cheers, steve
Hi list, I successefully draw and add a matplotlib figure in a notebook page. Thanks to John Hunter and it's powerfull FigureCanvasGTK. I add a navigationToolbar2GTK. But now, i am stuck to have callbacks when a button is pressed. Even the selection drawned when we use the zoom is not displayed. How can i easily used callbacks ever written instead of rewriting all of them? Thanks a lot, Philippe Collet
John Hunter wrote: >>>>>>"Steve" == Steve Schmerler <el...@gm...> writes: > > > Steve> I still can plot as root, but not as user!? If it's some > > That I find bizarre. Could it be a PATH or an LD_LIBRARY_PATH issue; > ie, you and root are using different libraries. Have you customized > either of these variables? For example, if you do the following as > yourself and root, do you get the same link information > > > ldd /usr/lib/python2.4/site-packages/matplotlib/_nc_transforms.so I'm using Python 2.3.5, but no, both: libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4009e000) libm.so.6 => /lib/tls/libm.so.6 (0x40159000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4017b000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40184000) libc.so.6 => /lib/tls/libc.so.6 (0x40193000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > > ldd /usr/lib/python2.4/site-packages/Numeric/_numpy.so no, both: libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40026000) libc.so.6 => /lib/tls/libc.so.6 (0x40036000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > > Steve> kind of permission problem it would be good to know > Steve> something about "../Objects/moduleobject.c". I there a way > Steve> to get IPython to print the full path? > > This is part of python -- if you install python-dev you should be able > to find the header on your system, eg at > > /usr/include/python2.4/moduleobject.h > Yes, I have this one (/usr/include/python2.3/moduleobject.h). > > Steve> Uh, I didn't build TkAgg, So I set BUILD_TKAGG = 'auto', > Steve> but > > > Steve> Do I have to install something besides python-tk? > > You need the tk8.4-dev and maybe the tcl8.4-dev headers. You may have > a different version number. > Ah OK. That does it. > > Steve> I hope we can sort this out. > > Two other things to try. > > 1) See if we can narrow down where the segfault is occurring by trying > to import the matplotlib modules separately > > import matplotlib.ft2font > import matplotlib._transforms > import matplotlib._agg > import matplotlib.backends._backend_agg > > I hope this was what you ment: ipython -pylab and then #################################################################### In [1]: import matplotlib.ft2font In [2]: import matplotlib._transforms In [3]: import matplotlib._agg In [4]: import matplotlib.backends._backend_agg --------------------------------------------------------------------------- exceptions.ImportError Traceback (most recent call last) /home/elcorto/Install/Matplotlib/matplotlib-0.83.2/<console> ImportError: No module named _backend_agg In [5]: import matplotlib.backends._gtkagg #################################################################### > 2) Compile matplotlib with > > VERBOSE = True OK this prints a lot. I did python setup.py build > build_log.txt It then prints some additional output which I pasted into build_log2.txt. I hope this helps in any way. I attached my setup.py and the *.txt files. BTW, I installed the .debs (mpl 0.82) from http://anakonda.altervista.org (on the mpl website) and this works! cheers, steve
Hi all: I've added a new cookbook wiki item on plotting data on map projections with the basemap toolkit. http://www.scipy.org/wikis/topical_software/Maps Comments are welcome. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/CDC R/CDC1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
Charles Moad wrote: > The problem seems to be alleviated for me now from you latest commit, John. OK, thanks for the info. I'll leave Prompts.py alone for now then. Cheers, f
John Hunter wrote: >>>>>>"Steve" == Steve Schmerler <el...@gm...> writes: > > > Steve> I still can plot as root, but not as user!? If it's some > > That I find bizarre. Could it be a PATH or an LD_LIBRARY_PATH issue; > ie, you and root are using different libraries. Have you customized > either of these variables? For example, if you do the following as > yourself and root, do you get the same link information > > > ldd /usr/lib/python2.4/site-packages/matplotlib/_nc_transforms.so I'm using Python 2.3.5, but no, both: libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4009e000) libm.so.6 => /lib/tls/libm.so.6 (0x40159000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4017b000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40184000) libc.so.6 => /lib/tls/libc.so.6 (0x40193000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > > ldd /usr/lib/python2.4/site-packages/Numeric/_numpy.so no, both: libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40026000) libc.so.6 => /lib/tls/libc.so.6 (0x40036000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > > Steve> kind of permission problem it would be good to know > Steve> something about "../Objects/moduleobject.c". I there a way > Steve> to get IPython to print the full path? > > This is part of python -- if you install python-dev you should be able > to find the header on your system, eg at > > /usr/include/python2.4/moduleobject.h > Yes, I have this one (/usr/include/python2.3/moduleobject.h). > > Steve> Uh, I didn't build TkAgg, So I set BUILD_TKAGG = 'auto', > Steve> but > > > Steve> Do I have to install something besides python-tk? > > You need the tk8.4-dev and maybe the tcl8.4-dev headers. You may have > a different version number. > Ah OK. That does it. > > Steve> I hope we can sort this out. > > Two other things to try. > > 1) See if we can narrow down where the segfault is occurring by trying > to import the matplotlib modules separately > > import matplotlib.ft2font > import matplotlib._transforms > import matplotlib._agg > import matplotlib.backends._backend_agg > > I hope this was what you ment: ipython -pylab and then #################################################################### In [1]: import matplotlib.ft2font In [2]: import matplotlib._transforms In [3]: import matplotlib._agg In [4]: import matplotlib.backends._backend_agg --------------------------------------------------------------------------- exceptions.ImportError Traceback (most recent call last) /home/elcorto/Install/Matplotlib/matplotlib-0.83.2/<console> ImportError: No module named _backend_agg In [5]: import matplotlib.backends._gtkagg #################################################################### > 2) Compile matplotlib with > > VERBOSE = True OK this prints a lot. I did python setup.py build > build_log.txt It then prints some additional output which I pasted into build_log2.txt. I hope this helps in any way. I attached my setup.py and the *.txt files. BTW, I installed the .debs (mpl 0.82) from http://anakonda.altervista.org (on the mpl website) and this works! cheers, steve
I would consider this a python bug, and I just added a quick fix for me. Changed line 511 in Prompts.py to say if self.Pprint and hasattr(arg, '__repr__'): instead of if self.Pprint: You probably don't want to add this for everything, but would it be possible to override the display method of the CachedOutput when the pylab option is specified? Further, you could only do this for python v.2.4. - Charlie Fernando Perez wrote: > Charles Moad wrote: > >> I found this link, >> http://mail.python.org/pipermail/python-bugs-list/2004-November/026192.html. >> I am guessing Jon and I are using python2.4 and you are using 2.3? > > > That's correct. I have 2.4 lying around, but matplotlib isn't built for > it, nor are any of its dependencies. So I can only do mpl tests with > 2.3, I'm afraid. > > Cheers, > > f
Charles Moad wrote: > I found this link, > http://mail.python.org/pipermail/python-bugs-list/2004-November/026192.html. I > am guessing Jon and I are using python2.4 and you are using 2.3? That's correct. I have 2.4 lying around, but matplotlib isn't built for it, nor are any of its dependencies. So I can only do mpl tests with 2.3, I'm afraid. Cheers, f
I found this link, http://mail.python.org/pipermail/python-bugs-list/2004-November/026192.html. I am guessing Jon and I are using python2.4 and you are using 2.3? - Charlie Fernando Perez wrote: > Charles Moad wrote: > >> FYI, turning off pprint gets rid of the error. Will look into it more. > > > OK, that's a start. Try running the following at a command line, via > plain python: > > import pprint > > from matplotlib.transforms import unit_bbox > b = unit_bbox() > print pprint.pformat(b) > > > This is what I get: > > planck[~/test]> python pprint_bug.py > <Bbox object at 0x8f3c99c> > > If you get a segfault, it means that there's a problem with those > objects triggered by pprint. > > As a temporary workaround, you can permanently disable pprint in your > ipython sessions by setting > > pprint 0 > > in your ~/.ipython/ipythonrc file. > > Cheers, > > f
Charles Moad wrote: > FYI, turning off pprint gets rid of the error. Will look into it more. OK, that's a start. Try running the following at a command line, via plain python: import pprint from matplotlib.transforms import unit_bbox b = unit_bbox() print pprint.pformat(b) This is what I get: planck[~/test]> python pprint_bug.py <Bbox object at 0x8f3c99c> If you get a segfault, it means that there's a problem with those objects triggered by pprint. As a temporary workaround, you can permanently disable pprint in your ipython sessions by setting pprint 0 in your ~/.ipython/ipythonrc file. Cheers, f
I am not aware of any specific mesh plotting routines, so you may have to write your own by specifying which lines you want drawn for the mesh - sort of like specifying the vertices of polygons in VTK. x=[0,0,1,1,0] y=[0,1,1,0,0] pylab.plot(x,y,'bo-') pylab.ylim((-0.1,1.1)) pylab.xlim((-0.1,1.1)) pylab.show() Ryan Henry Proudhon wrote: > Yes two dimensional mesh only of course... for 3D I already use Vtk > > The biggest potential problem is that matplotlib is exclusively a 2D > plotting program (for now). Is the mesh that you want to plot two > dimensional? > > Ryan > > > --Henry > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
FYI, turning off pprint gets rid of the error. Will look into it more. Fernando Perez wrote: > John Hunter wrote: > >> but in ipython I get the segfault >> >> peds-pc311:~> ipython >> Python 2.4.1 (#2, Mar 30 2005, 21:51:10) >> Type "copyright", "credits" or "license" for more information. >> >> IPython 0.6.16_cvs -- An enhanced Interactive Python. >> ? -> Introduction to IPython's features. >> %magic -> Information about IPython's 'magic' % functions. >> help -> Python's own help system. >> object? -> Details about 'object'. ?object also works, ?? prints >> more. >> >> In [1]: from matplotlib.transforms import unit_bbox >> >> In [2]: b = unit_bbox() >> >> In [3]: b >> Segmentation fault > > > This one is going to be hard to track, since I can't reproduce it on my > system (Fedora 3): > > planck[~]> ip > Python 2.3.4 (#1, Feb 2 2005, 12:11:53) > Type "copyright", "credits" or "license" for more information. > > IPython 0.6.16_svn -- An enhanced Interactive Python. > ? -> Introduction to IPython's features. > %magic -> Information about IPython's 'magic' % functions. > help -> Python's own help system. > object? -> Details about 'object'. ?object also works, ?? prints more. > > In [1]: from matplotlib.transforms import unit_bbox > > In [2]: b = unit_bbox() > > In [3]: b > Out[3]: <Bbox object at 0x965d6d4> > > In [4]: > > In [4]: > planck[~]> pylab > > In [1]: from matplotlib.transforms import unit_bbox > > In [2]: b = unit_bbox() > > In [3]: b > Out[3]: <Bbox object at 0x893866c> > > So neither plain ipython nor 'ipython -pylab' show me any sign of > trouble here. > > I'm afraid we'll have to debug this one by proxy, since I can't see any > problem here. The code which is executed when output is to be printed > is the __call__ method of the CachedOutput object. Look around line 476 > in IPython/Prompts.py. Adding some print/debug statements to that > function might shed some light. > > One thing you could try is toggling %Pprint back and forth. This is the > pretty printer used by ipython, which is part of the stdlib (module > pprint). It might be triggering some problem in the underlying pycxx > objects. > > Cheers, > > f
John Hunter wrote: > but in ipython I get the segfault > > peds-pc311:~> ipython > Python 2.4.1 (#2, Mar 30 2005, 21:51:10) > Type "copyright", "credits" or "license" for more information. > > IPython 0.6.16_cvs -- An enhanced Interactive Python. > ? -> Introduction to IPython's features. > %magic -> Information about IPython's 'magic' % functions. > help -> Python's own help system. > object? -> Details about 'object'. ?object also works, ?? prints more. > > In [1]: from matplotlib.transforms import unit_bbox > > In [2]: b = unit_bbox() > > In [3]: b > Segmentation fault This one is going to be hard to track, since I can't reproduce it on my system (Fedora 3): planck[~]> ip Python 2.3.4 (#1, Feb 2 2005, 12:11:53) Type "copyright", "credits" or "license" for more information. IPython 0.6.16_svn -- An enhanced Interactive Python. ? -> Introduction to IPython's features. %magic -> Information about IPython's 'magic' % functions. help -> Python's own help system. object? -> Details about 'object'. ?object also works, ?? prints more. In [1]: from matplotlib.transforms import unit_bbox In [2]: b = unit_bbox() In [3]: b Out[3]: <Bbox object at 0x965d6d4> In [4]: In [4]: planck[~]> pylab In [1]: from matplotlib.transforms import unit_bbox In [2]: b = unit_bbox() In [3]: b Out[3]: <Bbox object at 0x893866c> So neither plain ipython nor 'ipython -pylab' show me any sign of trouble here. I'm afraid we'll have to debug this one by proxy, since I can't see any problem here. The code which is executed when output is to be printed is the __call__ method of the CachedOutput object. Look around line 476 in IPython/Prompts.py. Adding some print/debug statements to that function might shed some light. One thing you could try is toggling %Pprint back and forth. This is the pretty printer used by ipython, which is part of the stdlib (module pprint). It might be triggering some problem in the underlying pycxx objects. Cheers, f