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}
(151) 
_{Aug}

_{Sep}

_{Oct}

_{Nov}

_{Dec}

S  M  T  W  T  F  S 






1
(12) 
2
(13) 
3
(4) 
4
(34) 
5
(14) 
6
(23) 
7
(26) 
8
(12) 
9
(7) 
10
(7) 
11
(9) 
12
(12) 
13
(20) 
14
(14) 
15
(13) 
16
(5) 
17
(4) 
18
(22) 
19
(29) 
20
(13) 
21
(9) 
22
(22) 
23
(3) 
24
(3) 
25
(29) 
26
(9) 
27
(10) 
28
(16) 
29
(16) 
30
(16) 
31
(9) 






From: Stan West <stan.west@nr...>  20101001 21:40:33

From: Nicolas Bigaouette [mailto:nbigaouette@...] Sent: Thursday, September 30, 2010 18:00 What I would like to do it have a colormap which is transparent for lower values of data and opaque for high values, so the blue on the figure would appear white/transparent. Would it suffice for the colormap to be light or white for low values but still opaque? There are several builtin maps [1] with a light color at one end; if it's light at the high end, append "_r" to the colormap name to get the reversed version. [1] http://matplotlib.sourceforge.net/examples/pylab_examples/show_colormaps.html 
From: Gökhan Sever <gokhansever@gm...>  20101001 18:09:12

I temporarily fixed this by commenting the following lines in pkg_resources.py folder in /sitepackages/distribute.. folder. issue_warning( "Module %s was already imported from %s, but %s is being added" " to sys.path" % (modname, fn, self.location), ) Now, I don't get any dateutil imported messages each time I launch an IPython session. On Wed, Sep 8, 2010 at 1:26 PM, Gökhan Sever <gokhansever@...> wrote: > It is clear with python c "import matplotlib" > I can't seem to find any "dateutil" phrase occurring within the IPython > installation folder (/sitepackages/IPython) > Where else to look for? > > On Wed, Sep 8, 2010 at 12:35 PM, Aman Thakral <aman.thakral@...> > wrote: >> >> try this in the terminal: >> python c "import matplotlib" >> >> Aman >> >> On Wed, Sep 8, 2010 at 12:17 PM, Gökhan Sever <gokhansever@...> >> wrote: >>> >>> Hello, >>> My usual ipython pylab is giving me these warnings after I installed >>> matplotlib from the source (matplotlib rev.8624 using python setupegg.py >>> develop). >>> >>> /usr/lib/python2.6/sitepackages/EPDLab3.0.1.dev_r24658py2.6.egg/enthought/__init__.py:7: >>> UserWarning: Module dateutil was already imported from >>> /home/user/Desktop/pythonrepo/matplotlib/lib/dateutil/__init__.pyc, but >>> /usr/lib/python2.6/sitepackages is being added to sys.path >>> __import__('pkg_resources').declare_namespace(__name__) >>> >>> Under /sitepackages in easyinstall.pth I moved >>> the /home/user/Desktop/pythonrepo/matplotlib/lib line to the very bottom of >>> the file but this doesn't make any change. >>> Any ideas how to remove this warning? >>>  >>> Gökhan >>> >>> >>>  >>> This SF.net Dev2Dev email is sponsored by: >>> >>> Show off your parallel programming skills. >>> Enter the Intel(R) Threading Challenge 2010. >>> http://p.sf.net/sfu/intelthreadsfd >>> _______________________________________________ >>> Matplotlibusers mailing list >>> Matplotlibusers@... >>> https://lists.sourceforge.net/lists/listinfo/matplotlibusers >>> >> >> >> >>  >> Aman Thakral >> B.Eng & Biosci, M.Eng Design > > > >  > Gökhan >  Gökhan 
From: Michael Droettboom <mdroe@st...>  20101001 15:54:30

On 10/01/2010 11:46 AM, Jason Grout wrote: > On 10/01/2010 10:40 AM, Michael Droettboom wrote: >> On 10/01/2010 11:31 AM, Jason Grout wrote: >>> I'm working on updating matplotlib in Sage to 1.0. We're running into >>> a problem where it seems that the fontList.cache is not being updated. >>> I've included an example session below. The .matplotlib directory is >>> accessible here: >>> http://sage.math.washington.edu/home/jason/.matplotlib/ The problem >>> seems to be that it is looking for a file that does not exist: >>> >>> [jason@...:/scratch/jason/sage4.6.alpha2]$ ls >>> /scratch/grout/sage4.5.3/local/lib/python2.6/sitepackages/matplotlib/mpldata/fonts/ttf/Vera.ttf >>> ls: cannot access >>> /scratch/grout/sage4.5.3/local/lib/python2.6/sitepackages/matplotlib/mpldata/fonts/ttf/Vera.ttf: >>> No such file or directory >>> >>> >>> Does anyone have any idea what is going on? Why is the fontList.cache >>> file not being updated, instead of trying to access a path that doesn't >>> exist? >> There is a fix in SVN for this, but it has not yet been released. When >> a font file is not found, it rebuilds the entire font cache on the spot. > Thanks. Do you know the commit? We'll apply it to the Sage matplotlib > package. > > It's r8712. >>> A related question is: I see the variable USE_FONTCONFIG in >>> font_manager.py. It says it is experimental. How stable is that code? >>> It's tempting to switch to using fontconfig. >> I use it as a matter of course on my Linux box and haven't had any >> issues. It's experimental because it's the kind of thing that is so >> affected by external environmental issues and distro differences. Just >> because it "works for me", there's no guarantee it will work >> everywhere. But go ahead and give it a try and report back with the >> distro you're using. >> > Well, with Sage, we're using it on a number of distros, flavors of OSX, > Solaris, etc. So maybe I'll stick with the homegrown caching > solution. At least until we've tested it a bit on different support > platforms for Sage. > > I thought there was some sort of build bot for matplotlib that tested on > a number of platforms. Do you know how the fontconfig stuff does on > that (if it exists...). I don't think the buildbots are turning on fontconfig support. And I believe all of the buildbots are some flavour of Ubuntu (the OSX buildbot is not running), so there's not a lot of coverage. Mike > Thanks, > > Jason > > >  > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novellsfdev2dev > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers 
From: Jason Grout <jasonsage@cr...>  20101001 15:46:50

On 10/01/2010 10:40 AM, Michael Droettboom wrote: > On 10/01/2010 11:31 AM, Jason Grout wrote: >> I'm working on updating matplotlib in Sage to 1.0. We're running into >> a problem where it seems that the fontList.cache is not being updated. >> I've included an example session below. The .matplotlib directory is >> accessible here: >> http://sage.math.washington.edu/home/jason/.matplotlib/ The problem >> seems to be that it is looking for a file that does not exist: >> >> [jason@...:/scratch/jason/sage4.6.alpha2]$ ls >> /scratch/grout/sage4.5.3/local/lib/python2.6/sitepackages/matplotlib/mpldata/fonts/ttf/Vera.ttf >> ls: cannot access >> /scratch/grout/sage4.5.3/local/lib/python2.6/sitepackages/matplotlib/mpldata/fonts/ttf/Vera.ttf: >> No such file or directory >> >> >> Does anyone have any idea what is going on? Why is the fontList.cache >> file not being updated, instead of trying to access a path that doesn't >> exist? > There is a fix in SVN for this, but it has not yet been released. When > a font file is not found, it rebuilds the entire font cache on the spot. Thanks. Do you know the commit? We'll apply it to the Sage matplotlib package. >> A related question is: I see the variable USE_FONTCONFIG in >> font_manager.py. It says it is experimental. How stable is that code? >> It's tempting to switch to using fontconfig. > I use it as a matter of course on my Linux box and haven't had any > issues. It's experimental because it's the kind of thing that is so > affected by external environmental issues and distro differences. Just > because it "works for me", there's no guarantee it will work > everywhere. But go ahead and give it a try and report back with the > distro you're using. > Well, with Sage, we're using it on a number of distros, flavors of OSX, Solaris, etc. So maybe I'll stick with the homegrown caching solution. At least until we've tested it a bit on different support platforms for Sage. I thought there was some sort of build bot for matplotlib that tested on a number of platforms. Do you know how the fontconfig stuff does on that (if it exists...). Thanks, Jason 
From: Michael Droettboom <mdroe@st...>  20101001 15:40:55

On 10/01/2010 11:31 AM, Jason Grout wrote: > I'm working on updating matplotlib in Sage to 1.0. We're running into > a problem where it seems that the fontList.cache is not being updated. > I've included an example session below. The .matplotlib directory is > accessible here: > http://sage.math.washington.edu/home/jason/.matplotlib/ The problem > seems to be that it is looking for a file that does not exist: > > [jason@...:/scratch/jason/sage4.6.alpha2]$ ls > /scratch/grout/sage4.5.3/local/lib/python2.6/sitepackages/matplotlib/mpldata/fonts/ttf/Vera.ttf > ls: cannot access > /scratch/grout/sage4.5.3/local/lib/python2.6/sitepackages/matplotlib/mpldata/fonts/ttf/Vera.ttf: > No such file or directory > > > Does anyone have any idea what is going on? Why is the fontList.cache > file not being updated, instead of trying to access a path that doesn't > exist? There is a fix in SVN for this, but it has not yet been released. When a font file is not found, it rebuilds the entire font cache on the spot. > A related question is: I see the variable USE_FONTCONFIG in > font_manager.py. It says it is experimental. How stable is that code? > It's tempting to switch to using fontconfig. I use it as a matter of course on my Linux box and haven't had any issues. It's experimental because it's the kind of thing that is so affected by external environmental issues and distro differences. Just because it "works for me", there's no guarantee it will work everywhere. But go ahead and give it a try and report back with the distro you're using. Mike > Thanks, > > Jason > > > Here is my example session: > > In [1]: from pylab import * > > In [2]: text(0.5, 0.5, 'text 0') > Out[2]:<matplotlib.text.Text object at 0x18e7b50> > > In [3]: savefig('test.png') > ERROR: An unexpected error occurred while tokenizing input > The following traceback may be corrupted or invalid > The error message is: ('EOF in multiline statement', (532, 0)) > > ERROR: An unexpected error occurred while tokenizing input > The following traceback may be corrupted or invalid > The error message is: ('EOF in multiline statement', (643, 0)) > > ERROR: An unexpected error occurred while tokenizing input > The following traceback may be corrupted or invalid > The error message is: ('EOF in multiline statement', (10, 0)) > >  > RuntimeError Traceback (most recent call last) > > /mnt/usb1/scratch/jason/sage4.6.alpha2/<ipython console> in<module>() > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/pyplot.pyc > in savefig(*args, **kwargs) > 361 def savefig(*args, **kwargs): > 362 fig = gcf() > > 363 return fig.savefig(*args, **kwargs) > 364 > 365 @docstring.copy_dedent(Figure.ginput) > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/figure.pyc > in savefig(self, *args, **kwargs) > 1082 kwargs.setdefault('edgecolor', > rcParams['savefig.edgecolor']) > 1083 > > 1084 self.canvas.print_figure(*args, **kwargs) > 1085 > 1086 if transparent: > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/backend_bases.pyc > in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, > format, **kwargs) > 1884 orientation=orientation, > 1885 bbox_inches_restore=_bbox_inches_restore, > > 1886 **kwargs) > 1887 finally: > 1888 if bbox_inches and restore_bbox: > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/backends/backend_agg.pyc > in print_png(self, filename_or_obj, *args, **kwargs) > 436 > 437 def print_png(self, filename_or_obj, *args, **kwargs): > > 438 FigureCanvasAgg.draw(self) > 439 renderer = self.get_renderer() > 440 original_dpi = renderer.dpi > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/backends/backend_agg.pyc > in draw(self) > 392 > 393 self.renderer = self.get_renderer() > > 394 self.figure.draw(self.renderer) > 395 > 396 def get_renderer(self): > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/artist.pyc > in draw_wrapper(artist, renderer, *args, **kwargs) > 53 def draw_wrapper(artist, renderer, *args, **kwargs): > 54 before(artist, renderer) > > 55 draw(artist, renderer, *args, **kwargs) > 56 after(artist, renderer) > 57 > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/figure.pyc > in draw(self, renderer) > 796 dsu.sort(key=itemgetter(0)) > 797 for zorder, func, args in dsu: > > 798 func(*args) > 799 > 800 renderer.close_group('figure') > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/artist.pyc > in draw_wrapper(artist, renderer, *args, **kwargs) > 53 def draw_wrapper(artist, renderer, *args, **kwargs): > 54 before(artist, renderer) > > 55 draw(artist, renderer, *args, **kwargs) > 56 after(artist, renderer) > 57 > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/axes.pyc > in draw(self, renderer, inframe) > 1932 > 1933 for zorder, a in dsu: > > 1934 a.draw(renderer) > 1935 > 1936 renderer.close_group('axes') > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/artist.pyc > in draw_wrapper(artist, renderer, *args, **kwargs) > 53 def draw_wrapper(artist, renderer, *args, **kwargs): > 54 before(artist, renderer) > > 55 draw(artist, renderer, *args, **kwargs) > 56 after(artist, renderer) > 57 > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/axis.pyc > in draw(self, renderer, *args, **kwargs) > 1015 tick.set_label1(label) > 1016 tick.set_label2(label) > > 1017 tick.draw(renderer) > 1018 if tick.label1On and tick.label1.get_visible(): > 1019 extent = tick.label1.get_window_extent(renderer) > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/artist.pyc > in draw_wrapper(artist, renderer, *args, **kwargs) > 53 def draw_wrapper(artist, renderer, *args, **kwargs): > 54 before(artist, renderer) > > 55 draw(artist, renderer, *args, **kwargs) > 56 after(artist, renderer) > 57 > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/axis.pyc > in draw(self, renderer) > 232 > 233 if self.label1On: > > 234 self.label1.draw(renderer) > 235 if self.label2On: > 236 self.label2.draw(renderer) > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/artist.pyc > in draw_wrapper(artist, renderer, *args, **kwargs) > 53 def draw_wrapper(artist, renderer, *args, **kwargs): > 54 before(artist, renderer) > > 55 draw(artist, renderer, *args, **kwargs) > 56 after(artist, renderer) > 57 > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/text.pyc > in draw(self, renderer) > 522 renderer.open_group('text', self.get_gid()) > 523 > > 524 bbox, info = self._get_layout(renderer) > 525 trans = self.get_transform() > 526 > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/text.pyc > in _get_layout(self, renderer) > 296 tmp, lp_h, lp_bl = get_text_width_height_descent('lp', > 297 > self._fontproperties, > > 298 > ismath=False) > 299 offsety = lp_h * self._linespacing > 300 > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/backends/backend_agg.pyc > in get_text_width_height_descent(self, s, prop, ismath) > 178 > 179 flags = self._get_hinting_flag() > > 180 font = self._get_agg_font(prop) > 181 font.set_text(s, 0.0, flags=flags) # the width and > height of unrotated string > 182 w, h = font.get_width_height() > > /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/backends/backend_agg.pyc > in _get_agg_font(self, prop) > 219 font = self._fontd.get(fname) > 220 if font is None: > > 221 font = FT2Font(str(fname)) > 222 self._fontd[fname] = font > 223 self._fontd[key] = font > > RuntimeError: Could not open facefile > /scratch/grout/sage4.5.3/local/lib/python2.6/sitepackages/matplotlib/mpldata/fonts/ttf/Vera.ttf; > Cannot_Open_Resource > > > >  > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novellsfdev2dev > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers 
From: Jason Grout <jasonsage@cr...>  20101001 15:31:24

I'm working on updating matplotlib in Sage to 1.0. We're running into a problem where it seems that the fontList.cache is not being updated. I've included an example session below. The .matplotlib directory is accessible here: http://sage.math.washington.edu/home/jason/.matplotlib/ The problem seems to be that it is looking for a file that does not exist: [jason@...:/scratch/jason/sage4.6.alpha2]$ ls /scratch/grout/sage4.5.3/local/lib/python2.6/sitepackages/matplotlib/mpldata/fonts/ttf/Vera.ttf ls: cannot access /scratch/grout/sage4.5.3/local/lib/python2.6/sitepackages/matplotlib/mpldata/fonts/ttf/Vera.ttf: No such file or directory Does anyone have any idea what is going on? Why is the fontList.cache file not being updated, instead of trying to access a path that doesn't exist? A related question is: I see the variable USE_FONTCONFIG in font_manager.py. It says it is experimental. How stable is that code? It's tempting to switch to using fontconfig. Thanks, Jason Here is my example session: In [1]: from pylab import * In [2]: text(0.5, 0.5, 'text 0') Out[2]: <matplotlib.text.Text object at 0x18e7b50> In [3]: savefig('test.png') ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multiline statement', (532, 0)) ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multiline statement', (643, 0)) ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multiline statement', (10, 0))  RuntimeError Traceback (most recent call last) /mnt/usb1/scratch/jason/sage4.6.alpha2/<ipython console> in <module>() /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/pyplot.pyc in savefig(*args, **kwargs) 361 def savefig(*args, **kwargs): 362 fig = gcf() > 363 return fig.savefig(*args, **kwargs) 364 365 @docstring.copy_dedent(Figure.ginput) /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/figure.pyc in savefig(self, *args, **kwargs) 1082 kwargs.setdefault('edgecolor', rcParams['savefig.edgecolor']) 1083 > 1084 self.canvas.print_figure(*args, **kwargs) 1085 1086 if transparent: /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/backend_bases.pyc in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, **kwargs) 1884 orientation=orientation, 1885 bbox_inches_restore=_bbox_inches_restore, > 1886 **kwargs) 1887 finally: 1888 if bbox_inches and restore_bbox: /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/backends/backend_agg.pyc in print_png(self, filename_or_obj, *args, **kwargs) 436 437 def print_png(self, filename_or_obj, *args, **kwargs): > 438 FigureCanvasAgg.draw(self) 439 renderer = self.get_renderer() 440 original_dpi = renderer.dpi /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/backends/backend_agg.pyc in draw(self) 392 393 self.renderer = self.get_renderer() > 394 self.figure.draw(self.renderer) 395 396 def get_renderer(self): /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/artist.pyc in draw_wrapper(artist, renderer, *args, **kwargs) 53 def draw_wrapper(artist, renderer, *args, **kwargs): 54 before(artist, renderer) > 55 draw(artist, renderer, *args, **kwargs) 56 after(artist, renderer) 57 /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/figure.pyc in draw(self, renderer) 796 dsu.sort(key=itemgetter(0)) 797 for zorder, func, args in dsu: > 798 func(*args) 799 800 renderer.close_group('figure') /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/artist.pyc in draw_wrapper(artist, renderer, *args, **kwargs) 53 def draw_wrapper(artist, renderer, *args, **kwargs): 54 before(artist, renderer) > 55 draw(artist, renderer, *args, **kwargs) 56 after(artist, renderer) 57 /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/axes.pyc in draw(self, renderer, inframe) 1932 1933 for zorder, a in dsu: > 1934 a.draw(renderer) 1935 1936 renderer.close_group('axes') /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/artist.pyc in draw_wrapper(artist, renderer, *args, **kwargs) 53 def draw_wrapper(artist, renderer, *args, **kwargs): 54 before(artist, renderer) > 55 draw(artist, renderer, *args, **kwargs) 56 after(artist, renderer) 57 /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/axis.pyc in draw(self, renderer, *args, **kwargs) 1015 tick.set_label1(label) 1016 tick.set_label2(label) > 1017 tick.draw(renderer) 1018 if tick.label1On and tick.label1.get_visible(): 1019 extent = tick.label1.get_window_extent(renderer) /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/artist.pyc in draw_wrapper(artist, renderer, *args, **kwargs) 53 def draw_wrapper(artist, renderer, *args, **kwargs): 54 before(artist, renderer) > 55 draw(artist, renderer, *args, **kwargs) 56 after(artist, renderer) 57 /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/axis.pyc in draw(self, renderer) 232 233 if self.label1On: > 234 self.label1.draw(renderer) 235 if self.label2On: 236 self.label2.draw(renderer) /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/artist.pyc in draw_wrapper(artist, renderer, *args, **kwargs) 53 def draw_wrapper(artist, renderer, *args, **kwargs): 54 before(artist, renderer) > 55 draw(artist, renderer, *args, **kwargs) 56 after(artist, renderer) 57 /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/text.pyc in draw(self, renderer) 522 renderer.open_group('text', self.get_gid()) 523 > 524 bbox, info = self._get_layout(renderer) 525 trans = self.get_transform() 526 /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/text.pyc in _get_layout(self, renderer) 296 tmp, lp_h, lp_bl = get_text_width_height_descent('lp', 297 self._fontproperties, > 298 ismath=False) 299 offsety = lp_h * self._linespacing 300 /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/backends/backend_agg.pyc in get_text_width_height_descent(self, s, prop, ismath) 178 179 flags = self._get_hinting_flag() > 180 font = self._get_agg_font(prop) 181 font.set_text(s, 0.0, flags=flags) # the width and height of unrotated string 182 w, h = font.get_width_height() /mnt/usb1/scratch/jason/sage4.6.alpha2/local/lib/python2.6/sitepackages/matplotlib/backends/backend_agg.pyc in _get_agg_font(self, prop) 219 font = self._fontd.get(fname) 220 if font is None: > 221 font = FT2Font(str(fname)) 222 self._fontd[fname] = font 223 self._fontd[key] = font RuntimeError: Could not open facefile /scratch/grout/sage4.5.3/local/lib/python2.6/sitepackages/matplotlib/mpldata/fonts/ttf/Vera.ttf; Cannot_Open_Resource 
From: Tony S Yu <tsyu80@gm...>  20101001 14:47:53

On Oct 1, 2010, at 9:40 AM, Benjamin Root wrote: > On Thu, Sep 30, 2010 at 8:44 PM, Tony S Yu <tsyu80@...> wrote: > I'd like to make something in between a box plot [1] and a histogram. Each histogram would be represented by a single, tall, rectangular patch (like the box in a box plot), and the patch would be subdivided by the bin edges of the histogram. The face color of each subpatch would replace the bar height in the histogram. > > If any of that actually made sense: > > * Does this type of plot have a name? > > * Is there an easy way to do this in Matplotlib? > > * If there isn't an easy way, what would be a good starting point? Initial ideas: 1) Use pcolor or imshow and embed this axes in a larger axes, 2) represent the subpatches as a PolyCollection. > > Thoughts? > Tony > > [1] e.g. http://matplotlib.sourceforge.net/examples/pylab_examples/boxplot_demo.html > > Tony, > > I am not quite sure I understand. [snip] > Or maybe something else in the gallery is more like what you want: > > http://matplotlib.sourceforge.net/gallery.html > > Ben Root > I've checked the gallery, but I don't see anything that appears similar. In any case, I ended up hacking together something that works. I've attached an image of what I had in mind (created with the code at the very bottom of this reply). I ended up using mpl Rectangle objects and stringing them together using a PatchCollection. Maybe there's a more efficient way to do this, but this approach worked wellenough. Best, Tony """ First attempt at a histogram strip chart (made up name). ifmain block taken from [1] except that I've replaced uniform distributions with normal distributions. [1] http://matplotlib.sourceforge.net/examples/pylab_examples/boxplot_demo3.html """ import numpy as np import matplotlib.pyplot as plt from matplotlib import collections NORM_TYPES = dict(max=max, sum=sum) class BinCollection(collections.PatchCollection): def __init__(self, hist, bin_edges, x=0, width=1, cmap=plt.cm.gray_r, norm_type='max', **kwargs): yy = (bin_edges[:1] + bin_edges[1:])/2. heights = np.diff(bin_edges) bins = [plt.Rectangle((x, y), width, h) for y, h in zip(yy, heights)] norm = NORM_TYPES[norm_type] fc = cmap(np.asarray(hist, dtype=float)/norm(hist)) super(BinCollection, self).__init__(bins, facecolors=fc, **kwargs) def histstrip(x, positions=None, widths=None, ax=None): if ax is None: ax = plt.gca() if positions is None: positions = range(1, len(x) + 1) if widths is None: widths = np.min(np.diff(positions)) / 2. * np.ones(len(positions)) for data, x_pos, w in zip(x, positions, widths): x_pos = w/2. hist, bin_edges = np.histogram(data) bins = BinCollection(hist, bin_edges, width=w, x=x_pos) ax.add_collection(bins, autolim=True) ax.set_xticks(positions) ax.autoscale_view() if __name__ == '__main__': import matplotlib.pyplot as plt import numpy as np np.random.seed(2) inc = 0.1 e1 = np.random.normal(0,1, size=(500,)) e2 = np.random.normal(0,1, size=(500,)) e3 = np.random.normal(0,1 + inc, size=(500,)) e4 = np.random.normal(0,1 + 2*inc, size=(500,)) treatments = [e1,e2,e3,e4] fig, ax = plt.subplots() pos = np.array(range(len(treatments)))+1 histstrip(treatments, ax=ax) ax.set_xlabel('treatment') ax.set_ylabel('response') fig.subplots_adjust(right=0.99,top=0.99) plt.show() 
From: Benjamin Root <ben.root@ou...>  20101001 13:41:02

On Thu, Sep 30, 2010 at 8:44 PM, Tony S Yu <tsyu80@...> wrote: > I'd like to make something in between a box plot [1] and a histogram. Each > histogram would be represented by a single, tall, rectangular patch (like > the box in a box plot), and the patch would be subdivided by the bin edges > of the histogram. The face color of each subpatch would replace the bar > height in the histogram. > > If any of that actually made sense: > > * Does this type of plot have a name? > > * Is there an easy way to do this in Matplotlib? > > * If there isn't an easy way, what would be a good starting point? Initial > ideas: 1) Use pcolor or imshow and embed this axes in a larger axes, 2) > represent the subpatches as a PolyCollection. > > Thoughts? > Tony > > [1] e.g. > http://matplotlib.sourceforge.net/examples/pylab_examples/boxplot_demo.html > Tony, I am not quite sure I understand. Are you looking for error bars on the histogram, maybe? http://matplotlib.sourceforge.net/users/screenshots.html#barcharts Or maybe something more like this: http://matplotlib.sourceforge.net/examples/pylab_examples/bar_stacked.html Or maybe something else in the gallery is more like what you want: http://matplotlib.sourceforge.net/gallery.html Ben Root 
From: damiano michael <damianomichael@wa...>  20101001 11:59:30

hi ! i would like to write a server side python script that generate .pdf documents. for the moment i have Python 2.7 installed server side and matplolib installed server side too. A simple script that create a simple plot and generate a .png picture works. this is the script i use : # # to access standard output : import sys # select a nonGUI backend : import matplotlib matplotlib.use('Agg') #matplotlib.use("cairo.pdf") #matplotlib.use('PDF') # import plotting module : import matplotlib.pyplot as plt # generate the plot : plt.plot([1,2,3,2,3,4]) # print the content type (what's the data type) # the new line is embedded, using '\n' notation : print "ContentType: image/png\n" # print "ContentType: image/PDF\n" # print "Contenttype: application/pdf" # output directly to webserver, as a png file : plt.savefig(sys.stdout, format='png') # plt.savefig(sys.stdout, format='PDF') # plt.savefig( "test.pdf", format='pdf' ) # I am wondering how to do the same thing but with sending a pdf file instead of a png picture. (the # are for all the things i tried) Does someone know ? thanks. jeanclaude 
From: Michael Droettboom <mdroe@st...>  20101001 11:46:20

Can you get us a gdb backtrace? Type "gdb python" at the prompt, then at the gdb prompt, type "r /usr/bin/ipython pylab". After it segfaults, type "bt" to get a backtrace, and send the output to this list. Mike On 10/01/2010 07:04 AM, Eric Emsellem wrote: > Hi > > I just upgraded to opensuse 11.3. > > And I get now: > > ipython pylab: > > matplotlib version 1.0.0 > verbose.level helpful > platform is linux2 > *Segmentation fault* > > > Any clue? > > I am using IPython 0.10, Python 2.6.5 > > Eric > > >  > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novellsfdev2dev > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers 
From: Eric Emsellem <eemselle@es...>  20101001 11:31:36

Hi I just upgraded to opensuse 11.3. And I get now: ipython pylab: matplotlib version 1.0.0 verbose.level helpful platform is linux2 *Segmentation fault* Any clue? I am using IPython 0.10, Python 2.6.5 Eric 
From: Tony S Yu <tsyu80@gm...>  20101001 01:45:00

I'd like to make something in between a box plot [1] and a histogram. Each histogram would be represented by a single, tall, rectangular patch (like the box in a box plot), and the patch would be subdivided by the bin edges of the histogram. The face color of each subpatch would replace the bar height in the histogram. If any of that actually made sense: * Does this type of plot have a name? * Is there an easy way to do this in Matplotlib? * If there isn't an easy way, what would be a good starting point? Initial ideas: 1) Use pcolor or imshow and embed this axes in a larger axes, 2) represent the subpatches as a PolyCollection. Thoughts? Tony [1] e.g. http://matplotlib.sourceforge.net/examples/pylab_examples/boxplot_demo.html 