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
(22) |
2
(17) |
3
(21) |
4
(7) |
5
(7) |
6
(17) |
7
(8) |
8
(8) |
9
(33) |
10
(11) |
11
|
12
(2) |
13
(11) |
14
(29) |
15
(13) |
16
(13) |
17
(3) |
18
(2) |
19
(3) |
20
(7) |
21
(17) |
22
(12) |
23
(19) |
24
(19) |
25
(14) |
26
(5) |
27
(25) |
28
(13) |
|
|
|
|
From: <or...@co...> - 2006-02-27 16:08:31
|
I'm the maintainer for python-matplotlib in Fedora Extras. I'm getting ready to build 0.87 and am looking for suggestions about what numeric engine to make standard. I'm building against numpy, Numeric, and numarry, but I don't want to have it Require: all three at run time. Is numpy fully functional and the way of the future and should I just list that? Currently (0.86) I have python-numeric as the required engine at runtime. Thanks! - Orion Poplawski |
From: John H. <jdh...@ac...> - 2006-02-27 15:18:38
|
>>>>> "Chris" == Chris Shen <chr...@ai...> writes: Chris> Thanks Jeff for quick input. It is working well for me now. Chris> For the examples, I download from the link on the homepage Chris> which still points to Chris> http://matplotlib.sourceforge.net/matplotlib_examples_0.83.2.zip The website was a bit out of date but has been recently updated. The examples link now points to a recent set of examples consistent with 0.87. JDH |
From: Chris S. <chr...@ai...> - 2006-02-27 14:46:19
|
> Chris: Contour now returns a single object, so replace all your calls > with something like > > CS = contour(X,Y,Z) > > -Jeff > > P.S. You must not have updated the examples, because the ones that come > with maplotlib 0.87 do work. > Thanks Jeff for quick input. It is working well for me now. For the examples, I download from the link on the homepage which still points to http://matplotlib.sourceforge.net/matplotlib_examples_0.83.2.zip Best regards, Chris |
From: John H. <jdh...@ac...> - 2006-02-27 14:38:51
|
>>>>> "Paul" == Paul Barrett <peb...@gm...> writes: Paul> The following works for me. >>>> xticks(arange(len(data)), date, rotation=30, size='small') Yes, and you can change the rotation of the existing ticks with from pylab import figure, show fig = figure() ax = fig.add_subplot(111) ax.plot([1,2,3]) labels = ax.get_xticklabels() for label in labels: label.set_rotation(30) show() |
From: Jeff W. <js...@fa...> - 2006-02-27 14:37:09
|
Chris Shen wrote: > Dear friends, > > I just upgrade matplotlib from 0.83.2 to 0.87 under WinXP, Python 2.3.5, > Numeric 23.8. I find out that all my plots using contour function do not > work anymore. I also tried the examples: contour_demo.py, > contourf_demo.py and contour_image.py. All of them do not work with the > following error message: > > File "contour_demo.py", line 26, in ? > levels, colls = contour(X, Y, Z) > TypeError: unpack non-sequence > > Anyone has any clue in fixing this problem? > > Best regards, > Chris > Chris: Contour now returns a single object, so replace all your calls with something like CS = contour(X,Y,Z) -Jeff P.S. You must not have updated the examples, because the ones that come with maplotlib 0.87 do work. -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449 325 Broadway Web : http://www.cdc.noaa.gov/~jsw Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124 |
From: Chris S. <chr...@ai...> - 2006-02-27 14:01:02
|
Dear friends, I just upgrade matplotlib from 0.83.2 to 0.87 under WinXP, Python 2.3.5, Numeric 23.8. I find out that all my plots using contour function do not work anymore. I also tried the examples: contour_demo.py, contourf_demo.py and contour_image.py. All of them do not work with the following error message: File "contour_demo.py", line 26, in ? levels, colls = contour(X, Y, Z) TypeError: unpack non-sequence Anyone has any clue in fixing this problem? Best regards, Chris |
From: Paul B. <peb...@gm...> - 2006-02-27 13:36:21
|
On 2/27/06, Jason C. Leach <jas...@gm...> wrote: > > Hi, > > Is it possible to angle the text in the xticklabels? I find it bunches u= p > a bit too much in my graph and I can't really read it. The following works for me. >>> xticks(arange(len(data)), date, rotation=3D30, size=3D'small') -- Paul |
From: Jason C. L. <jas...@gm...> - 2006-02-27 07:25:30
|
Hi, Is it possible to angle the text in the xticklabels? I find it bunches up = a bit too much in my graph and I can't really read it. Thanks, Jason. -- ........................................ .... Jason C. Leach .... PGP Key: 0x62DDDF75 .... Keyserver: gpg.mit.edu |
From: Jeff P. <jef...@ya...> - 2006-02-27 02:55:20
|
Hello, I'm trying to create just one scatter point and change its position. here's my code: marker = axes.scatter([xValue,], [yValue],]) #show the plots canvas.draw() I want to change the x and y value of the marker without creating a new marker (the old one is still showing). i saw that there was something like: marker.set_array() but I wasn't sure how to use this properly. how can I dynamically reset my scatter position? thanks. Jeff mat...@li... wrote: Send Matplotlib-users mailing list submissions to mat...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/matplotlib-users or, via email, send a message with subject or body 'help' to mat...@li... You can reach the person managing the list at mat...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Matplotlib-users digest..." Today's Topics: 1. Bug in WXAgg on OS X and Matplotlib 0.87 (Samuel M. Smith) 2. Matplotlib installed font names (Samuel M. Smith) 3. Getting latex fonts to display in plot window (Samuel M. Smith) 4. Re: Getting latex fonts to display in plot window (Darren Dale) 5. problem compiling matplotlib (-mtune=i686) (Sue Tranter) 6. visualization tool (Ryan Krauss) 7. Re: visualization tool (Arnd Baecker) --__--__-- Message: 1 Cc: mat...@li..., Smith Samuel From: "Samuel M. Smith" Date: Sat, 25 Feb 2006 10:22:57 -0700 To: Christopher Barker Subject: [Matplotlib-users] Bug in WXAgg on OS X and Matplotlib 0.87 Setting the WX_CONFIG environment variable before the build fixed one problem. It is now finding my matplotlibrc file. I thought maybe it was a font corruption problem but it I use TkAgg everything works fine with my 0.87.1cvs build. So I think maybe I have uncovered a bug in the WXAgg? I would like to help fix it but I don't have a clue of where to start. I also tried WxAgg with the first fonts in the rc file set to the ones that come installed with matplotlib font.serif : Bitstream Vera Serif font.sans-serif : Bitstream Vera Sans and it still crashes. So something is wrong. Maybe its my environment. It would be nice if someone could verify if they get the same problem Here is the debug output AlBook:smithsm$ ipython -pylab loaded rc file /Users/smithsm/.matplotlib/matplotlibrc matplotlib version 0.87.1cvs verbose.level debug interactive is False platform is darwin loaded modules: ['IPython.Prompts', '_bisect', 'distutils', 'IPython.iplib', 'IPython.signal', 'random', 'IPython.FakeModule', 'datetime', 'matplotlib.tempfile', 'IPython.bdb', 'distutils.sysconfig', 'pytz.datetime', 'IPython.time', 'struct', 're', 'tempfile', 'pprint', 'IPython.copy_reg', 'imp', 'IPython.OInspect', 'collections', 'IPython.pydoc', 'IPython.cStringIO', 'zipimport', 'IPython.codecs', 'string', 'matplotlib.dateutil', 'IPython.imp', 'repr', 'matplotlib.__future__', 'pytz.tzinfo', 'IPython.Itpl', 'IPython.Debugger', 'new', 'distutils.re', 'IPython.excolors', 'IPython.Queue', 'IPython.os', 'resource', 'bisect', 'IPython.glob', 'signal', 'cmd', 'pydoc', 'threading', 'token', 'shlex', 'pytz.bisect', 'IPython.shlex', 'matplotlib.pytz', 'IPython.exceptions', 'IPython.new', 'dis', 'cStringIO', 'locale', 'IPython.path', 'Queue', 'IPython.types', 'atexit', 'IPython.commands', 'encodings', 'IPython.threading', 'bdb', 'IPython.ConfigLoader', 'matplotlib.warnings', 'matplotlib.sys', 'encodings.types', 'posix', 'encodings.ascii', 'math', 'IPython.platutils_dummy', 'fcntl', 'IPython.profile', 'IPython.platutils_win32', 'dateutil', 'optparse', 'UserDict', 'inspect', 'distutils.os', 'matplotlib', 'IPython.hooks', 'exceptions', 'codecs', 'getopt', 'md5', 'IPython.ColorANSI', 'commands', 'socket', 'thread', 'sre', 'IPython.StringIO', 'traceback', 'IPython.pstats', 'pkg_resources', 'itertools', 'opcode', 'pstats', 'IPython.tokenize', 'distutils.sys', 'os', 'pdb', 'IPython.traceback', '__future__', '_sre', 'IPython.Shell', '__builtin__', 'IPython', 'distutils.string', 'matplotlib.datetime', 'IPython.codeop', 'posixpath', 'popen2', 'errno', '_socket', 'binascii', 'IPython.sys', 'IPython.re', 'sre_constants', 'IPython.platutils_posix', 'IPython.PyColorize', 'matplotlib.md5', 'types', 'IPython.genutils', 'tokenize', 'IPython.pdb', 'cPickle', 'pytz.sys', 'IPython.platutils', 'IPython.macro', '_codecs', 'IPython.token', '_locale', 'IPython.keyword', 'IPython.IPython', 'IPython.string', 'pytz', 'IPython.__builtin__', 'copy', 'matplotlib.os', 'IPython.socket', 'IPython.resource', 'IPython.cmd', 'keyword', 'StringIO', 'IPython.linecache', 'IPython.__main__', 'encodings.aliases', 'fnmatch', 'sre_parse', 'IPython.ultraTB', 'IPython.tempfile', 'IPython.Release', 'IPython.OutputTrap', 'copy_reg', 'sre_compile', '_random', 'site', 'IPython.getopt', 'IPython.ipstruct', 'IPython.inspect', '__main__', 'shutil', 'IPython.Magic', 'IPython.pprint', 'strop', 'IPython.bisect', 'IPython.textwrap', 'IPython.shutil', 'encodings.codecs', 'gettext', 'IPython.Logger', 'IPython.fnmatch', 'encodings.exceptions', 'pytz.sets', 'profile', 'IPython.wildcard', 'stat', '_ssl', 'warnings', 'IPython.deep_reload', 'glob', 'sets', 'textwrap', 'sys', 'IPython.ipmaker', 'codeop', 'os.path', 'IPython.background_jobs', 'IPython.DPyGetOpt', 'IPython.cPickle', 'IPython.usage', 'matplotlib.distutils', 'distutils.errors', 'marshal', 'IPython.__future__', 'linecache', 'matplotlib.shutil', 'time', 'IPython.ipapi'] numerix numpy 0.9.5.2006 font search path ['/Library/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/site-packages/matplotlib/mpl-data'] trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/cmtt10.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/VeraMoBd.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/VeraMoBI.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/VeraBd.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/VeraSeBd.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/VeraMono.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/cmsy10.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/cmex10.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/cmmi10.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/VeraIt.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/cmr10.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/Vera.ttf $HOME=/Users/smithsm CONFIGDIR=/Users/smithsm/.matplotlib loaded ttfcache file /Users/smithsm/.matplotlib/ttffont.cache matplotlib data path /Library/Frameworks/Python.framework/Versions/ 2.4/lib/python2.4/site-packages/matplotlib/mpl-data backend WXAgg version 2.6.2.1 Python 2.4.2 (#3, Jan 8 2006, 20:33:07) Type "copyright", "credits" or "license" for more information. IPython 0.7.1.fix1 -- 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([-2.345,-12.349]) ------------------------------------------------------------------------ --- exceptions.MemoryError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/backends/backend_wx.py in _onPaint(self, evt) 1046 self.realize() 1047 # Render to the bitmap -> 1048 self.draw(repaint=False) 1049 # Update the display using a PaintDC 1050 self.gui_repaint(drawDC=wx.PaintDC(self)) /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint) 60 FigureCanvasAgg.draw(self) 61 ---> 62 self.bitmap = _convert_agg_to_wx_bitmap (self.get_renderer(), None) 63 if repaint: 64 self.gui_repaint() MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap ------------------------------------------------------------------------ --- exceptions.MemoryError Traceback (most recent call last) /Install/Python/MacPython/Python2.4.2/MatPlotLib/examples/ console> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/pylab.py in plot(*args, **kwargs) 2122 def plot(*args, **kwargs): 2123 # allow callers to override the hold state by passing hold=True|False -> 2124 b = ishold() 2125 h = popd(kwargs, 'hold', None) 2126 if h is not None: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/pylab.py in ishold() 962 Return the hold status of the current axes 963 """ --> 964 return gca().ishold() 965 966 def isinteractive(): /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/pylab.py in gca(**kwargs) 913 """ 914 --> 915 ax = gcf().gca(**kwargs) 916 return ax 917 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/pylab.py in gcf() 923 return figManager.canvas.figure 924 else: --> 925 return figure() 926 927 def gci(): /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/pylab.py in figure(num, figsize, dpi, facecolor, edgecolor, frameon) 893 figManager.canvas.figure.number = num 894 --> 895 draw_if_interactive() 896 return figManager.canvas.figure 897 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/IPython/genutils.py in wrapper(*args, **kw) 802 def wrapper(*args,**kw): 803 wrapper.called = False --> 804 out = func(*args,**kw) 805 wrapper.called = True 806 return out /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/backends/backend_wx.py in draw_if_interactive() 1170 figManager = Gcf.get_active() 1171 if figManager is not None: -> 1172 figManager.canvas.draw() 1173 1174 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint) 60 FigureCanvasAgg.draw(self) 61 ---> 62 self.bitmap = _convert_agg_to_wx_bitmap (self.get_renderer(), None) 63 if repaint: 64 self.gui_repaint() MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap In [2]: ------------------------------------------------------------------------ --- exceptions.MemoryError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/backends/backend_wx.py in _onPaint(self, evt) 1046 self.realize() 1047 # Render to the bitmap -> 1048 self.draw(repaint=False) 1049 # Update the display using a PaintDC 1050 self.gui_repaint(drawDC=wx.PaintDC(self)) /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint) 60 FigureCanvasAgg.draw(self) 61 ---> 62 self.bitmap = _convert_agg_to_wx_bitmap (self.get_renderer(), None) 63 if repaint: 64 self.gui_repaint() MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap --__--__-- Message: 2 Cc: Smith Samuel From: "Samuel M. Smith" Date: Sat, 25 Feb 2006 10:28:58 -0700 To: mat...@li... Subject: [Matplotlib-users] Matplotlib installed font names There are several fonts installed by matplotlib into the mpl_data folder. The names or sort of cryptic. I tried matching them up with the family names in the matplotlibrc file list for font.serif font.sans-serif but the only one that makes sense is Bitstream Vera What is the family name for cmt, cms cmex and also the pXXX.afm fonts? ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84043 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" ********************************************************************** --__--__-- Message: 3 Cc: Rob Hetland , Smith Samuel From: "Samuel M. Smith" Date: Sat, 25 Feb 2006 10:32:56 -0700 To: mat...@li... Subject: [Matplotlib-users] Getting latex fonts to display in plot window Rob, Is there a way for matplotlib to use the latex fonts in the plot window not just in the saved version of the graph? Even when I have usetex True it picks a font from the font list given in the matplotlibrc file. How do I force it to use the type1cm or pslatex fonts? Sam --__--__-- Message: 4 From: Darren Dale Organization: Cornell University To: mat...@li... Subject: Re: [Matplotlib-users] Getting latex fonts to display in plot window Date: Sat, 25 Feb 2006 13:53:01 -0500 On Saturday 25 February 2006 12:32, Samuel M. Smith wrote: > Rob, > > Is there a way for matplotlib to use the latex fonts in the plot > window not just in the saved version of the graph? > Even when I have usetex True it picks a font from the font list given > in the matplotlibrc file. This is a new feature, it uses the font list to select the appropriate latex font, and the same font is used in the saved version. > How do I force it to use the type1cm or pslatex fonts? For type1cm, use: font.serif : serif (or "computer modern roman") font.sans-serif : sans-serif (or "computer modern sans-serif") font.monospace : monospace (or "computer modern typewriter") for pslatex, use: font.serif : times font.sans-serif : helvetica font.monospace : courier I'm planning on updating the usetex wiki page, I just havent had time to do it yet. Darren --__--__-- Message: 5 Date: Sat, 25 Feb 2006 19:29:49 +0000 (GMT) From: Sue Tranter To: mat...@li... Subject: [Matplotlib-users] problem compiling matplotlib (-mtune=i686) I'm having problems compiling matplotlib. I'm running suse 9.3 (linux) and have python: Python 2.4.1 (#1, Sep 13 2005, 00:39:20) I downloaded matplotlib-0.87.tar.gz, and have not changed the setup.py or setupext.py at all. I think I have all the graphics things installed. The error message goes: >>> [snip] building 'matplotlib._agg' extension creating build/temp.linux-i686-2.4 creating build/temp.linux-i686-2.4/src creating build/temp.linux-i686-2.4/agg23 creating build/temp.linux-i686-2.4/agg23/src gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -I/usr/X11R6/include -fPIC -Iagg23/include -Isrc -Iswig -I/usr/include/python2.4 -c src/agg.cxx -o build/temp.linux-i686-2.4/src/agg.o cc1plus: error: invalid option `tune=i686' error: command 'gcc' failed with exit status 1 >> gcc --version gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux) Copyright (C) 2003 Free Software Foundation, Inc. I cant find anywhere in the matplotlib-0.87 directory structure that sets this "tune=i686". I have searched all the files in the directory structure for "tune" and "i686", so I'm guessing it's set somewhere else, but I dont know where. Can anyone help? thanks Sue --__--__-- Message: 6 Date: Sat, 25 Feb 2006 15:28:49 -0500 From: "Ryan Krauss" To: matplotlib-users Subject: [Matplotlib-users] visualization tool This is sort of not a matplotlib specific question, but it seems like people on this list might be able to point me in some good directions. I need to give a lecture on feedback control systems. I would like to talk about stabalizing unstable systems and use an inverted pendulum for an example. I know that Matlab had a demo like this that included a fairly neat 2D visualization of a cart moving back and forth with an inverted pendulum on it. I would need to run a simulation in the background that outputs the cart position and the pendulum angle and then I would want to create an animation of the cart and pendulum moving around. Can anyone recommend a python package for doing this kind of animation? Thanks, Ryan --__--__-- Message: 7 Date: Sun, 26 Feb 2006 00:33:18 +0100 (CET) From: Arnd Baecker To: Ryan Krauss cc: matplotlib-users Subject: Re: [Matplotlib-users] visualization tool Hi Ryan, On Sat, 25 Feb 2006, Ryan Krauss wrote: > This is sort of not a matplotlib specific question, but it seems like > people on this list might be able to point me in some good directions. > I need to give a lecture on feedback control systems. I would like > to talk about stabalizing unstable systems and use an inverted > pendulum for an example. I know that Matlab had a demo like this that > included a fairly neat 2D visualization of a cart moving back and > forth with an inverted pendulum on it. I would need to run a > simulation in the background that outputs the cart position and the > pendulum angle and then I would want to create an animation of the > cart and pendulum moving around. > > Can anyone recommend a python package for doing this kind of animation? First, you might try to use techniques described at http://new.scipy.org/Wiki/Cookbook/Matplotlib/Animations If you have a reasonably fast machine it might already work out fine enough. Other options are pygame (never used it myself) and Vpython (www.vpython.org) which can do some very nice things with remarkably little code. Best, Arnd --__--__-- _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users End of Matplotlib-users Digest --------------------------------- Brings words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail. |
From: Charlie M. <cw...@gm...> - 2006-02-27 02:05:13
|
Numpy and Scipy highjack distutils now, and this may be something they add in. Do you ave numpy installed? That looks like a valid option though. On 2/25/06, Sue Tranter <se...@po...> wrote: > I'm having problems compiling matplotlib. I'm running suse 9.3 (linux) an= d > have python: > Python 2.4.1 (#1, Sep 13 2005, 00:39:20) > > I downloaded matplotlib-0.87.tar.gz, and have not changed the setup.py or > setupext.py at all. I think I have all the graphics things installed. > > The error message goes: > >>> [snip] > building 'matplotlib._agg' extension > creating build/temp.linux-i686-2.4 > creating build/temp.linux-i686-2.4/src > creating build/temp.linux-i686-2.4/agg23 > creating build/temp.linux-i686-2.4/agg23/src > gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=3Di586 -mtune=3Di68= 6 > -fmessage-length=3D0 -Wall -D_FORTIFY_SOURCE=3D2 -g -I/usr/X11R6/include = -fPIC > -Iagg23/include -Isrc -Iswig -I/usr/include/python2.4 -c src/agg.cxx -o > build/temp.linux-i686-2.4/src/agg.o > cc1plus: error: invalid option `tune=3Di686' > error: command 'gcc' failed with exit status 1 > > >> gcc --version > gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux) > Copyright (C) 2003 Free Software Foundation, Inc. > > I cant find anywhere in the matplotlib-0.87 directory structure that sets > this "tune=3Di686". I have searched all the files in the directory struct= ure > for "tune" and "i686", so I'm guessing it's set somewhere else, but I don= t > know where. > Can anyone help? > > thanks > Sue > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Charlie M. <cw...@gm...> - 2006-02-27 01:57:47
|
They're just another option and it is personally preference at this point. I strongly suggest you skim this link: http://peak.telecommunity.com/DevCenter/PythonEggs - Charlie On 2/26/06, Alan G Isaac <ai...@am...> wrote: > On Wed, 22 Feb 2006, Charlie Moad apparently wrote: > > Notable notes: > > - Built against numpy-0.9.5 > > - A wealth of bugfixes > > http://sourceforge.net/project/showfiles.php?group_id=3D80706 > > I'm on Win32 with Python 2.4. > For this I see both an egg and an installer. > The installer is being downloaded 15 times as often. > What are the considerations? > > I thought the egg was the simpler choice: > can't it just be put on site-packages and that's that? > But I'm not very familiar with eggs. > Is the issue that one may wish to modify the source, > and the egg doesn't give direct access to that? > > Thank you, > Alan Isaac > > PS Is it true that with eggs you can have multiple versions > side by side and use them at will? > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Steve S. <el...@gm...> - 2006-02-27 01:11:19
|
Darren Dale wrote: > On Sunday 26 February 2006 7:50 pm, you wrote: > >>Darren Dale wrote: >> >>>On Sunday 26 February 2006 6:37 am, Steve Schmerler wrote: >>> >>>>Hi >>>> >>>>With 0.87 and 0.86.2 mpl randomly crashes when executing this script: >>>> >>>>--------------------------- >>> >>>>from pylab import * >>>>from matplotlib import verbose >>> >>>>verbose.level = 'debug-annoying' >>>>##verbose.level = 'debug' >>>> >>>>rcParams['text.usetex'] = True >>>>plot([1,2,3]) >>>> >>>>savefig("image.eps") >>>>--------------------------- >>>> >>>>The crash is triggered when savefig() is called and only if >>>>rcParams['text.usetex'] = True. The error message is >>>> >>>> (test.py:7258): Pango-WARNING **: Invalid UTF-8 string passed to >>>>pango_layout_set_text() >>>> >>>>I tried to track it down but the crash seems to occur in *different* >>>>code segments (calling "python test.py" several times it crashed >>>>sometimes after a call to dvips, sometimes dvipng, gs, ...). Sometimes >>>>it even *doesn't* crash at all. >>>> >>>>I have the following pango-stuff installed (Debian): >>>> >>>>elcorto@ramrod:~$ COLUMNS=200 dpkg -l | grep pango >>>>ii libpango1.0-0 1.8.1-1 >>>> >>>>ii libpango1.0-common 1.8.1-1 >>>> >>>>ii libpango1.0-dbg 1.8.1-1 >>>> >>>>ii libpango1.0-dev 1.8.1-1 >>> >>>I can't reproduce your result with pango 1.10.3 installed on a gentoo >>>system with python-2.4.2. Does the script crash if you set >>>verbose.level=silent? It looks like one of the stdout or stderr messages >>>from dvips/gs/dvipng is returning unicode, in which case you could try to >>>convert them to strings before passing them to verbose.report. Just a >>>guess. >> >>Yes, with verbose.level = 'silent' the script runs and saves the image >>but in interactive use the interpreter crashes (an errow message window >>pops up, verbose.level: silent in matplotlibrc). > > > Did you try to wrap the stderr/stdout output with str()? > No. I have to correct myself. I just tested it again (with verbose.level = 'silent' in the script and/or matplotlibrc) and it *does* crash so it's not the verbose messages. This seems truly random ... cheers, steve -- Random number generation is the art of producing pure gibberish as quickly as possible. |
From: Steve S. <el...@gm...> - 2006-02-27 00:50:57
|
Darren Dale wrote: > On Sunday 26 February 2006 6:37 am, Steve Schmerler wrote: > >>Hi >> >>With 0.87 and 0.86.2 mpl randomly crashes when executing this script: >> >>--------------------------- >>from pylab import * >>from matplotlib import verbose >> >>verbose.level = 'debug-annoying' >>##verbose.level = 'debug' >> >>rcParams['text.usetex'] = True >>plot([1,2,3]) >> >>savefig("image.eps") >>--------------------------- >> >>The crash is triggered when savefig() is called and only if >>rcParams['text.usetex'] = True. The error message is >> >> (test.py:7258): Pango-WARNING **: Invalid UTF-8 string passed to >>pango_layout_set_text() >> >>I tried to track it down but the crash seems to occur in *different* >>code segments (calling "python test.py" several times it crashed >>sometimes after a call to dvips, sometimes dvipng, gs, ...). Sometimes >>it even *doesn't* crash at all. >> >>I have the following pango-stuff installed (Debian): >> >>elcorto@ramrod:~$ COLUMNS=200 dpkg -l | grep pango >>ii libpango1.0-0 1.8.1-1 >> >>ii libpango1.0-common 1.8.1-1 >> >>ii libpango1.0-dbg 1.8.1-1 >> >>ii libpango1.0-dev 1.8.1-1 > > > I can't reproduce your result with pango 1.10.3 installed on a gentoo system > with python-2.4.2. Does the script crash if you set verbose.level=silent? It > looks like one of the stdout or stderr messages from dvips/gs/dvipng is > returning unicode, in which case you could try to convert them to strings > before passing them to verbose.report. Just a guess. Yes, with verbose.level = 'silent' the script runs and saves the image but in interactive use the interpreter crashes (an errow message window pops up, verbose.level: silent in matplotlibrc). cheers, steve -- Random number generation is the art of producing pure gibberish as quickly as possible. |
From: Paul B. <peb...@gm...> - 2006-02-26 20:00:23
|
On 2/25/06, Samuel M. Smith <sm...@sa...> wrote: > > There are several fonts installed by matplotlib into the mpl_data > folder. The names or > sort of cryptic. I tried matching them up with the family names in > the matplotlibrc file list for > font.serif > font.sans-serif > > but the only one that makes sense is Bitstream Vera > What is the family name for cmt, cms cmex and also the pXXX.afm fonts? > These are the default fonts used by TeX and are usually needed for displaying math symbols. -- Paul |
From: Alan G I. <ai...@am...> - 2006-02-26 15:41:41
|
On Wed, 22 Feb 2006, Charlie Moad apparently wrote: > Notable notes: > - Built against numpy-0.9.5 > - A wealth of bugfixes > http://sourceforge.net/project/showfiles.php?group_id=80706 I'm on Win32 with Python 2.4. For this I see both an egg and an installer. The installer is being downloaded 15 times as often. What are the considerations? I thought the egg was the simpler choice: can't it just be put on site-packages and that's that? But I'm not very familiar with eggs. Is the issue that one may wish to modify the source, and the egg doesn't give direct access to that? Thank you, Alan Isaac PS Is it true that with eggs you can have multiple versions side by side and use them at will? |
From: Darren D. <dd...@co...> - 2006-02-26 14:54:17
|
On Sunday 26 February 2006 6:37 am, Steve Schmerler wrote: > Hi > > With 0.87 and 0.86.2 mpl randomly crashes when executing this script: > > --------------------------- > from pylab import * > from matplotlib import verbose > > verbose.level = 'debug-annoying' > ##verbose.level = 'debug' > > rcParams['text.usetex'] = True > plot([1,2,3]) > > savefig("image.eps") > --------------------------- > > The crash is triggered when savefig() is called and only if > rcParams['text.usetex'] = True. The error message is > > (test.py:7258): Pango-WARNING **: Invalid UTF-8 string passed to > pango_layout_set_text() > > I tried to track it down but the crash seems to occur in *different* > code segments (calling "python test.py" several times it crashed > sometimes after a call to dvips, sometimes dvipng, gs, ...). Sometimes > it even *doesn't* crash at all. > > I have the following pango-stuff installed (Debian): > > elcorto@ramrod:~$ COLUMNS=200 dpkg -l | grep pango > ii libpango1.0-0 1.8.1-1 > > ii libpango1.0-common 1.8.1-1 > > ii libpango1.0-dbg 1.8.1-1 > > ii libpango1.0-dev 1.8.1-1 I can't reproduce your result with pango 1.10.3 installed on a gentoo system with python-2.4.2. Does the script crash if you set verbose.level=silent? It looks like one of the stdout or stderr messages from dvips/gs/dvipng is returning unicode, in which case you could try to convert them to strings before passing them to verbose.report. Just a guess. |
From: Steve C. <ste...@ya...> - 2006-02-26 12:12:34
|
On Fri, 2006-02-24 at 14:15 -0800, John Hunter wrote: > This is a bug and I fixed it in CVS (Steve take a look and see > if you > agree with the show._mainloop approach) but basically you > don't want > to use matplotlib this way. I don't think show._mainloop is needed - it records the GTK+ state, but GTK+ already does that itself and provides gtk.main_level() which returns how many nestings of the mainloop we have running. To fix the reported error we just need to check the main loop is actually running before we call gtk.main_quit(). Fixed in CVS. Steve Send instant messages to your online friends http://au.messenger.yahoo.com |
From: Steve S. <el...@gm...> - 2006-02-26 11:37:44
|
Hi With 0.87 and 0.86.2 mpl randomly crashes when executing this script: --------------------------- from pylab import * from matplotlib import verbose verbose.level = 'debug-annoying' ##verbose.level = 'debug' rcParams['text.usetex'] = True plot([1,2,3]) savefig("image.eps") --------------------------- The crash is triggered when savefig() is called and only if rcParams['text.usetex'] = True. The error message is (test.py:7258): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() I tried to track it down but the crash seems to occur in *different* code segments (calling "python test.py" several times it crashed sometimes after a call to dvips, sometimes dvipng, gs, ...). Sometimes it even *doesn't* crash at all. I have the following pango-stuff installed (Debian): elcorto@ramrod:~$ COLUMNS=200 dpkg -l | grep pango ii libpango1.0-0 1.8.1-1 ii libpango1.0-common 1.8.1-1 ii libpango1.0-dbg 1.8.1-1 ii libpango1.0-dev 1.8.1-1 Here's an example debug output: ---------------------------------------------------------------------------------------------------------- elcorto@ramrod:~$ python test.py FigureCanvasAgg.print_figure FigureCanvasAgg.draw RendererAgg.__init__ RendererAgg._get_agg_font findfont failed Lucida Grande findfont failed Verdana findfont failed Geneva findfont failed Lucida findfont found Bitstream Vera Sans, normal, normal 500, normal, 12.0 findfont returning /usr/lib/python2.3/site-packages/matplotlib/mpl-data/Vera.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._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 matplotlib data path /usr/lib/python2.3/site-packages/matplotlib/mpl-data latex -interaction=nonstopmode "/tmp/15f8552d172b5a41c557b4ad371e3782.tex" This is e-TeX, Version 3.14159-2.1 (Web2C 7.4.5) entering extended mode (/tmp/15f8552d172b5a41c557b4ad371e3782.tex LaTeX2e <2001/06/01> Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, b ahasa, basque, catalan, croatian, czech, danish, dutch, finnish, greek, iceland ic, irish, italian, latin, magyar, norsk, norsk, portuges, romanian, russian, s lovak, slovene, spanish, swedish, turkish, ukrainian, nohyphenation, loaded. (/usr/share/texmf/tex/latex/koma-script/scrartcl.cls Document Class: scrartcl 2003/01/31 v2.9n LaTeX2e KOMA document class (/usr/share/texmf/tex/latex/koma-script/scrlfile.sty Package scrlfile, 2003/01/31 v2.9n LaTeX2e KOMA package Copyright (C) Markus Kohm ) (/usr/share/texmf/tex/latex/base/size11.clo) (/usr/share/texmf/tex/latex/koma-script/typearea.sty Package typearea, 2003/01/31 v2.9n LaTeX2e KOMA package Copyright (C) Frank Neukam, 1992-1994 Copyright (C) Markus Kohm, 1994-2002 )) (/usr/share/texmf/tex/latex/misc/type1cm.sty) (/usr/share/texmf/tex/latex/psnfss/helvet.sty (/usr/share/texmf/tex/latex/graphics/keyval.sty)) (/usr/share/texmf/tex/latex/psnfss/courier.sty) (/usr/share/texmf/tex/latex/base/textcomp.sty (/usr/share/texmf/tex/latex/base/ts1enc.def)) (/usr/share/texmf/tex/latex/misc/psfrag.sty (/usr/share/texmf/tex/latex/graphics/graphics.sty (/usr/share/texmf/tex/latex/graphics/trig.sty) (/usr/share/texmf/tex/latex/config/graphics.cfg) (/usr/share/texmf/tex/latex/graphics/dvips.def))) (/usr/share/texmf/tex/latex/graphics/graphicx.sty) (/usr/share/texmf/tex/latex/graphics/color.sty (/usr/share/texmf/tex/latex/config/color.cfg) (/usr/share/texmf/tex/latex/graphics/dvipsnam.def)) (./15f8552d172b5a41c557b4ad371e3782.aux) (/usr/share/texmf/tex/latex/base/ts1cmr.fd) (/usr/share/texmf/tex/latex/psnfss/ot1pnc.fd) <15f8552d172b5a41c557b4ad371e3782.eps> (/usr/share/texmf/tex/latex/psnfss/ot1phv.fd) [1] (./15f8552d172b5a41c557b4ad371e3782.aux) ) Output written on 15f8552d172b5a41c557b4ad371e3782.dvi (1 page, 2268 bytes). Transcript written on 15f8552d172b5a41c557b4ad371e3782.log. dvips -R -T 12.750000in,18.030000in -o "/tmp/15f8552d172b5a41c557b4ad371e3782.ps" "/tmp/15f8552d172b5a41c557b4ad371e3782.dvi" (test.py:7286): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() ---------------------------------------------------------------------------------------------------------- Hope anyone can give me a hint. cheers, steve -- Random number generation is the art of producing pure gibberish as quickly as possible. |
From: Arnd B. <arn...@we...> - 2006-02-25 23:33:29
|
Hi Ryan, On Sat, 25 Feb 2006, Ryan Krauss wrote: > This is sort of not a matplotlib specific question, but it seems like > people on this list might be able to point me in some good directions. > I need to give a lecture on feedback control systems. I would like > to talk about stabalizing unstable systems and use an inverted > pendulum for an example. I know that Matlab had a demo like this that > included a fairly neat 2D visualization of a cart moving back and > forth with an inverted pendulum on it. I would need to run a > simulation in the background that outputs the cart position and the > pendulum angle and then I would want to create an animation of the > cart and pendulum moving around. > > Can anyone recommend a python package for doing this kind of animation? First, you might try to use techniques described at http://new.scipy.org/Wiki/Cookbook/Matplotlib/Animations If you have a reasonably fast machine it might already work out fine enough. Other options are pygame (never used it myself) and Vpython (www.vpython.org) which can do some very nice things with remarkably little code. Best, Arnd |
From: Ryan K. <rya...@gm...> - 2006-02-25 20:28:54
|
This is sort of not a matplotlib specific question, but it seems like people on this list might be able to point me in some good directions. I need to give a lecture on feedback control systems. I would like to talk about stabalizing unstable systems and use an inverted pendulum for an example. I know that Matlab had a demo like this that included a fairly neat 2D visualization of a cart moving back and forth with an inverted pendulum on it. I would need to run a simulation in the background that outputs the cart position and the pendulum angle and then I would want to create an animation of the cart and pendulum moving around. Can anyone recommend a python package for doing this kind of animation? Thanks, Ryan |
From: Sue T. <se...@po...> - 2006-02-25 19:29:57
|
I'm having problems compiling matplotlib. I'm running suse 9.3 (linux) and have python: Python 2.4.1 (#1, Sep 13 2005, 00:39:20) I downloaded matplotlib-0.87.tar.gz, and have not changed the setup.py or setupext.py at all. I think I have all the graphics things installed. The error message goes: >>> [snip] building 'matplotlib._agg' extension creating build/temp.linux-i686-2.4 creating build/temp.linux-i686-2.4/src creating build/temp.linux-i686-2.4/agg23 creating build/temp.linux-i686-2.4/agg23/src gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -I/usr/X11R6/include -fPIC -Iagg23/include -Isrc -Iswig -I/usr/include/python2.4 -c src/agg.cxx -o build/temp.linux-i686-2.4/src/agg.o cc1plus: error: invalid option `tune=i686' error: command 'gcc' failed with exit status 1 >> gcc --version gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux) Copyright (C) 2003 Free Software Foundation, Inc. I cant find anywhere in the matplotlib-0.87 directory structure that sets this "tune=i686". I have searched all the files in the directory structure for "tune" and "i686", so I'm guessing it's set somewhere else, but I dont know where. Can anyone help? thanks Sue |
From: Darren D. <dd...@co...> - 2006-02-25 18:52:26
|
On Saturday 25 February 2006 12:32, Samuel M. Smith wrote: > Rob, > > Is there a way for matplotlib to use the latex fonts in the plot > window not just in the saved version of the graph? > Even when I have usetex True it picks a font from the font list given > in the matplotlibrc file. This is a new feature, it uses the font list to select the appropriate latex font, and the same font is used in the saved version. > How do I force it to use the type1cm or pslatex fonts? For type1cm, use: font.serif : serif (or "computer modern roman") font.sans-serif : sans-serif (or "computer modern sans-serif") font.monospace : monospace (or "computer modern typewriter") for pslatex, use: font.serif : times font.sans-serif : helvetica font.monospace : courier I'm planning on updating the usetex wiki page, I just havent had time to do it yet. Darren |
From: Samuel M. S. <sm...@sa...> - 2006-02-25 17:33:08
|
Rob, Is there a way for matplotlib to use the latex fonts in the plot window not just in the saved version of the graph? Even when I have usetex True it picks a font from the font list given in the matplotlibrc file. How do I force it to use the type1cm or pslatex fonts? Sam |
From: Samuel M. S. <sm...@sa...> - 2006-02-25 17:29:10
|
There are several fonts installed by matplotlib into the mpl_data folder. The names or sort of cryptic. I tried matching them up with the family names in the matplotlibrc file list for font.serif font.sans-serif but the only one that makes sense is Bitstream Vera What is the family name for cmt, cms cmex and also the pXXX.afm fonts? ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84043 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" ********************************************************************** |
From: Samuel M. S. <sm...@sa...> - 2006-02-25 17:23:05
|
Setting the WX_CONFIG environment variable before the build fixed one problem. It is now finding my matplotlibrc file. I thought maybe it was a font corruption problem but it I use TkAgg everything works fine with my 0.87.1cvs build. So I think maybe I have uncovered a bug in the WXAgg? I would like to help fix it but I don't have a clue of where to start. I also tried WxAgg with the first fonts in the rc file set to the ones that come installed with matplotlib font.serif : Bitstream Vera Serif font.sans-serif : Bitstream Vera Sans and it still crashes. So something is wrong. Maybe its my environment. It would be nice if someone could verify if they get the same problem Here is the debug output AlBook:smithsm$ ipython -pylab loaded rc file /Users/smithsm/.matplotlib/matplotlibrc matplotlib version 0.87.1cvs verbose.level debug interactive is False platform is darwin loaded modules: ['IPython.Prompts', '_bisect', 'distutils', 'IPython.iplib', 'IPython.signal', 'random', 'IPython.FakeModule', 'datetime', 'matplotlib.tempfile', 'IPython.bdb', 'distutils.sysconfig', 'pytz.datetime', 'IPython.time', 'struct', 're', 'tempfile', 'pprint', 'IPython.copy_reg', 'imp', 'IPython.OInspect', 'collections', 'IPython.pydoc', 'IPython.cStringIO', 'zipimport', 'IPython.codecs', 'string', 'matplotlib.dateutil', 'IPython.imp', 'repr', 'matplotlib.__future__', 'pytz.tzinfo', 'IPython.Itpl', 'IPython.Debugger', 'new', 'distutils.re', 'IPython.excolors', 'IPython.Queue', 'IPython.os', 'resource', 'bisect', 'IPython.glob', 'signal', 'cmd', 'pydoc', 'threading', 'token', 'shlex', 'pytz.bisect', 'IPython.shlex', 'matplotlib.pytz', 'IPython.exceptions', 'IPython.new', 'dis', 'cStringIO', 'locale', 'IPython.path', 'Queue', 'IPython.types', 'atexit', 'IPython.commands', 'encodings', 'IPython.threading', 'bdb', 'IPython.ConfigLoader', 'matplotlib.warnings', 'matplotlib.sys', 'encodings.types', 'posix', 'encodings.ascii', 'math', 'IPython.platutils_dummy', 'fcntl', 'IPython.profile', 'IPython.platutils_win32', 'dateutil', 'optparse', 'UserDict', 'inspect', 'distutils.os', 'matplotlib', 'IPython.hooks', 'exceptions', 'codecs', 'getopt', 'md5', 'IPython.ColorANSI', 'commands', 'socket', 'thread', 'sre', 'IPython.StringIO', 'traceback', 'IPython.pstats', 'pkg_resources', 'itertools', 'opcode', 'pstats', 'IPython.tokenize', 'distutils.sys', 'os', 'pdb', 'IPython.traceback', '__future__', '_sre', 'IPython.Shell', '__builtin__', 'IPython', 'distutils.string', 'matplotlib.datetime', 'IPython.codeop', 'posixpath', 'popen2', 'errno', '_socket', 'binascii', 'IPython.sys', 'IPython.re', 'sre_constants', 'IPython.platutils_posix', 'IPython.PyColorize', 'matplotlib.md5', 'types', 'IPython.genutils', 'tokenize', 'IPython.pdb', 'cPickle', 'pytz.sys', 'IPython.platutils', 'IPython.macro', '_codecs', 'IPython.token', '_locale', 'IPython.keyword', 'IPython.IPython', 'IPython.string', 'pytz', 'IPython.__builtin__', 'copy', 'matplotlib.os', 'IPython.socket', 'IPython.resource', 'IPython.cmd', 'keyword', 'StringIO', 'IPython.linecache', 'IPython.__main__', 'encodings.aliases', 'fnmatch', 'sre_parse', 'IPython.ultraTB', 'IPython.tempfile', 'IPython.Release', 'IPython.OutputTrap', 'copy_reg', 'sre_compile', '_random', 'site', 'IPython.getopt', 'IPython.ipstruct', 'IPython.inspect', '__main__', 'shutil', 'IPython.Magic', 'IPython.pprint', 'strop', 'IPython.bisect', 'IPython.textwrap', 'IPython.shutil', 'encodings.codecs', 'gettext', 'IPython.Logger', 'IPython.fnmatch', 'encodings.exceptions', 'pytz.sets', 'profile', 'IPython.wildcard', 'stat', '_ssl', 'warnings', 'IPython.deep_reload', 'glob', 'sets', 'textwrap', 'sys', 'IPython.ipmaker', 'codeop', 'os.path', 'IPython.background_jobs', 'IPython.DPyGetOpt', 'IPython.cPickle', 'IPython.usage', 'matplotlib.distutils', 'distutils.errors', 'marshal', 'IPython.__future__', 'linecache', 'matplotlib.shutil', 'time', 'IPython.ipapi'] numerix numpy 0.9.5.2006 font search path ['/Library/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/site-packages/matplotlib/mpl-data'] trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/cmtt10.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/VeraMoBd.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/VeraMoBI.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/VeraBd.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/VeraSeBd.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/VeraMono.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/cmsy10.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/cmex10.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/cmmi10.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/VeraIt.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/cmr10.ttf trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/mpl-data/Vera.ttf $HOME=/Users/smithsm CONFIGDIR=/Users/smithsm/.matplotlib loaded ttfcache file /Users/smithsm/.matplotlib/ttffont.cache matplotlib data path /Library/Frameworks/Python.framework/Versions/ 2.4/lib/python2.4/site-packages/matplotlib/mpl-data backend WXAgg version 2.6.2.1 Python 2.4.2 (#3, Jan 8 2006, 20:33:07) Type "copyright", "credits" or "license" for more information. IPython 0.7.1.fix1 -- 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([-2.345,-12.349]) ------------------------------------------------------------------------ --- exceptions.MemoryError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/backends/backend_wx.py in _onPaint(self, evt) 1046 self.realize() 1047 # Render to the bitmap -> 1048 self.draw(repaint=False) 1049 # Update the display using a PaintDC 1050 self.gui_repaint(drawDC=wx.PaintDC(self)) /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint) 60 FigureCanvasAgg.draw(self) 61 ---> 62 self.bitmap = _convert_agg_to_wx_bitmap (self.get_renderer(), None) 63 if repaint: 64 self.gui_repaint() MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap ------------------------------------------------------------------------ --- exceptions.MemoryError Traceback (most recent call last) /Install/Python/MacPython/Python2.4.2/MatPlotLib/examples/<ipython console> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/pylab.py in plot(*args, **kwargs) 2122 def plot(*args, **kwargs): 2123 # allow callers to override the hold state by passing hold=True|False -> 2124 b = ishold() 2125 h = popd(kwargs, 'hold', None) 2126 if h is not None: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/pylab.py in ishold() 962 Return the hold status of the current axes 963 """ --> 964 return gca().ishold() 965 966 def isinteractive(): /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/pylab.py in gca(**kwargs) 913 """ 914 --> 915 ax = gcf().gca(**kwargs) 916 return ax 917 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/pylab.py in gcf() 923 return figManager.canvas.figure 924 else: --> 925 return figure() 926 927 def gci(): /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/pylab.py in figure(num, figsize, dpi, facecolor, edgecolor, frameon) 893 figManager.canvas.figure.number = num 894 --> 895 draw_if_interactive() 896 return figManager.canvas.figure 897 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/IPython/genutils.py in wrapper(*args, **kw) 802 def wrapper(*args,**kw): 803 wrapper.called = False --> 804 out = func(*args,**kw) 805 wrapper.called = True 806 return out /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/backends/backend_wx.py in draw_if_interactive() 1170 figManager = Gcf.get_active() 1171 if figManager is not None: -> 1172 figManager.canvas.draw() 1173 1174 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint) 60 FigureCanvasAgg.draw(self) 61 ---> 62 self.bitmap = _convert_agg_to_wx_bitmap (self.get_renderer(), None) 63 if repaint: 64 self.gui_repaint() MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap In [2]: ------------------------------------------------------------------------ --- exceptions.MemoryError Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/backends/backend_wx.py in _onPaint(self, evt) 1046 self.realize() 1047 # Render to the bitmap -> 1048 self.draw(repaint=False) 1049 # Update the display using a PaintDC 1050 self.gui_repaint(drawDC=wx.PaintDC(self)) /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint) 60 FigureCanvasAgg.draw(self) 61 ---> 62 self.bitmap = _convert_agg_to_wx_bitmap (self.get_renderer(), None) 63 if repaint: 64 self.gui_repaint() MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap |