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) |
|
|
|
|
Hi Ryan, On 2006年2月25日, 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
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
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
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
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
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" **********************************************************************
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
Hi David, I was in non interactive mode. But I finally solved the problem by replacin= g=20 the GTKAgg backend by the TkAgg one. I don't understand why the GTKAgg does= =20 not work, but well... if the TkAgg does... Emmanuel Le Vendredi 24 F=C3=A9vrier 2006 16:47, David TREMOUILLES a =C3=A9crit=C2= =A0: > >>2006年2月24日, David Huard <dav...@gm... >: > >>What if I want it to be non-interactive ? I want to save graphics > >>directly to a file from a script, without them being displayed. It's > >>weird that in this case close() crashes the whole thing. > > Yes your wright the script have to work in non interactive mode. (I was > just trying to give an explanation to Emmanuel problem). > The following script should work (but it crashes like Emmanuel reported): > > #!/usr/bin/python > import matplotlib > import pylab > #Turn off interactive mode > matplotlib.interactive(False) > #plot figure 1 > pylab.figure() > pylab.plot([1,2,3],[1,2,3]) > pylab.savefig("test_pylab1.png") > pylab.close() > #plot figure 2 > pylab.figure() > pylab.plot([1,2,3],[1,2,3]) > pylab.savefig("test_pylab2.png") > pylab.close() > > Second figure cannot be created due to the crash. > > We need the help of matplotlib Gurus ! > > Regards, > > David > > 2006年2月24日, David Huard <dav...@gm...>: > > What if I want it to be non-interactive ? I want to save graphics > > directly to a file from a script, without them being displayed. It's > > weird that in this case close() crashes the whole thing. > > > > David > > > > 2006年2月23日, David TREMOUILLES < dav...@gm...>: > > > Could that be because interactive mode was set in your previous insta= ll > > > > ? > > > > > (in .matplotlibrc file) > > > if I try: > > > > > > #!/usr/bin/python > > > import matplotlib > > > import pylab > > > matplotlib.interactive(True) > > > pylab.figure() > > > pylab.close() > > > > > > Then it works... > > > Hope this could help you... > > > > > > David > > > > > > 2006年2月23日, Emmanuel Pecontal <pec...@ob...>: > > > > Hello, > > > > > > > > If I run the following script on my system (SuSE 10.0, > > > > matplotlib-0.87but same behaviour with 0.86): > > > > > > > > #!/usr/bin/python > > > > > > > > import matplotlib > > > > import pylab > > > > > > > > pylab.figure() > > > > pylab.close () > > > > > > > > It crashes with the following error message: > > > > > > > > Traceback (most recent call last): > > > > File "./tmp.py", line 8, in ? > > > > pylab.close() > > > > File > > > > > > "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", > > > line 768, in > > > > > > > close > > > > else: _pylab_helpers.Gcf.destroy(figManager.num) > > > > File > > > > > > "/usr/lib/python2.4/site-packages/matplotlib/_pylab_helpers.py", > > > line > > > > > > > 28, in destroy > > > > figManager.destroy() > > > > File > > > > > > "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py", > > > > > > > line 456, in destroy > > > > gtk.main_quit() > > > > RuntimeError: called outside of a mainloop > > > > > > > > Does someone has an idea of the problem? > > > > I didn't have this kind of problem with my SuSE 9.3 and > > > > matplotlib-0.85 > > > > > > -- > > > > Emmanuel P=C3=A9contal > > > > > > > > CRAL - Observatoire de Lyon > > > > 9, Av. Charles Andre > > > > F-69561 Saint Genis Laval Cedex > > > > > > > > tel (33) (0)4.78.86.83.76 - fax (33) (0)4.78.86.83.86 > > > > > > > > email : pec...@ob... =2D-=20 Emmanuel P=C3=A9contal CRAL - Observatoire de Lyon 9, Av. Charles Andre =46-69561 Saint Genis Laval Cedex tel (33) (0)4.78.86.83.76 - fax (33) (0)4.78.86.83.86 email : pec...@ob... ~
David Chin wrote: > Is it possible to layer a translucent contourf over an image? > > I tried the obvious, but it didn't seem to work: > > im = imshow(Z, interpolation='nearest', extent=extent, cmap=cm.bone) > v = axis() > cset = contourf(Z2, levels, hold='on', cmap=cm.jet, extent=extent, alpha=0.6) Dave, You are right, that should work, but it doesn't--support for the alpha kwarg just isn't there. I'll fix it. Thanks for pointing it out. Eric
Sorry guys, just wrong file name and synyax lol. Titi --- Titi Anggono <tia...@ya...> wrote: > Hi all, > > I read in the manual that we can save file as > binary. > I tried following code and got error, I would like > to > have your comment. > > ========================= > import Numeric > import pylab > > #ascii.dat is two dimensional array > fout=pylab.load('C:/Python23/code/ascii.dat') > t=fout[:,0] > x=fout[:,1] > X=Numeric.zeros((len(t),2),Numeric.Float) > X[:,0]=t > X[:,1]=x > #I want to save as one dimensional array > file('C:/Python23/code/asciiBinary.dat','wb').write(X.tostring()) > ============================== > the error is : > Traceback (most recent call last): > File "C:/Python23/code/asciiBinary.py", line 4, in > -toplevel- > fout=pylab.load('C:/Python23/code/ascii.dat') > File > "C:\Python23\Lib\site-packages\matplotlib\pylab.py", > line 1006, in load > r,c = X.shape > ValueError: unpack tuple of wrong size > > > Thanks > Titi > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a > groundbreaking scripting language > that extends applications into web and mobile media. > Attend the live webcast > and join the prime developer group breaking into > this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Hi all, I read in the manual that we can save file as binary. I tried following code and got error, I would like to have your comment. ========================= import Numeric import pylab #ascii.dat is two dimensional array fout=pylab.load('C:/Python23/code/ascii.dat') t=fout[:,0] x=fout[:,1] X=Numeric.zeros((len(t),2),Float) X[:,0]=t X[:,1]=s #I want to save as one dimensional array file('C:/Python23/code/asciiBinary.dat','wb').write(X.tostring()) ============================== the error is : Traceback (most recent call last): File "C:/Python23/code/asciiBinary.py", line 4, in -toplevel- fout=pylab.load('C:/Python23/code/ascii.dat') File "C:\Python23\Lib\site-packages\matplotlib\pylab.py", line 1006, in load r,c = X.shape ValueError: unpack tuple of wrong size Thanks Titi __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
I had similar problems with zooming in extremely far. My work around was to use masked arrays before zooming. Not perfect, but it worked. On 2/24/06, John Hunter <jdh...@ac...> wrote: > >>>>> "James" =3D=3D James Boyle <bo...@ll...> writes: > > James> Note that the y array has a screwy point - 1.0e18. What > James> happens is that the first plot ('plot1') looks fine but the > > This is an Agg bug and is unrelated to ticking. In the agg routine > for drawing a dashed line we are getting the freeze. This occurs in > the agg code and not in the matplotlib agg wrappers, so it will take > some work to fix. Basically I need to isolate a pure agg C++ example > and hope Maxim can find a good solution. > > The basic problem occurs when you set your viewlimits to be such a > small part of the data space that the transformed figure coordinate of > your data point is in outer space. In your case the transformed > coordinates with a viewlim set to 0,7 on an 800x600 canvas are > > 100 540 > 168.889 471.429 > 237.778 402.857 > 306.667 334.286 > 375.556 265.714 > 444.444 197.143 > 513.333 128.571 > 582.222 60 > 651.111 -8.57143 > 720 -6.85714e+19 > > It is possible that an earlier version handled this differently, as I > did refactor that part of the code at one point .... > > Thanks for the report -- I'll keep you posted if I can figure out > something. One workaround is to drop points in the agg backend that > are far removed from the canvas, but this isn't ideal, since it could > lead to misleading results in zoomed images. > > JDH > > > ------------------------------------------------------- > 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 >
I found wx-config in /usr/local/lib/wxPython-ansi-2.6.2.1/bin ./wx-config --version 2.6.2 there is another wx-config in /usr/bin that returns 2.5.3 for the version in setupext.py is the following function def find_wx_config(): """If the WX_CONFIG environment variable has been set, returns it value. Otherwise, search for `wx-config' in the PATH directories and return the first match found. Failing that, return None. """ wxconfig = os.getenv('WX_CONFIG') if wxconfig is not None: return wxconfig path = os.getenv('PATH') or '' for dir in path.split(':'): wxconfig = os.path.join(dir, 'wx-config') if os.path.exists(wxconfig): return wxconfig return None I checked and I didn't have WX_CONFIG environment variable set to anything. so I set the environment variable export WX_CONFIG="usr/local/lib/wxPython-ansi-2.6.2.1/bin/wx-config" AlBook:smithsm$ echo $WX_CONFIG usr/local/lib/wxPython-ansi-2.6.2.1/bin/wx-config I removed the build directory rm -r build then I python setup.py clean python setup.py build sudo python setup.py clean but the problem does not go away! from the debug output below it states that the WXAgg backend is version 2.6.2.1 So I don't know what to do? pythonw simple_plot.py --verbose-helpful matplotlib data path /Library/Frameworks/Python.framework/Versions/ 2.4/lib/python2.4/site-packages/matplotlib/mpl-data $HOME=/Users/smithsm CONFIGDIR=/Users/smithsm/.matplotlib loaded rc file /Users/smithsm/.matplotlib/matplotlibrc matplotlib version 0.87.1cvs verbose.level helpful interactive is False platform is darwin numerix numpy 0.9.5.2006 font search path ['/Library/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/site-packages/matplotlib/mpl-data'] loaded ttfcache file /Users/smithsm/.matplotlib/ttffont.cache backend WXAgg version 2.6.2.1 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/backends/backend_wx.py", line 1048, in _onPaint self.draw(repaint=False) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/backends/backend_wxagg.py", line 62, in draw self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None) MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap Traceback (most recent call last): File "simple_plot.py", line 16, in ? show() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/backends/backend_wx.py", line 1193, in show figwin.canvas.draw() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/backends/backend_wxagg.py", line 62, in draw self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None) MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap AlBook:smithsm$ On 24 Feb, 2006, at 15:33, Christopher Barker wrote: > Samuel M. Smith wrote: >> MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create >> the wx.Bitmap > > yes, if you are running OS-X 10.4. OS-X 10.4 comes with a version > of wxPython pre-installed. It's an older version that you probably > don't want to use, plus it's installed for python 2.3.5 > > However, when you need to build wx code (which the wxagg back-end > does), you can use the wx-config utility to find out what libs to > link etc. Apple has installed a wx-config into /usr/bin/wx-config > that points to their install of wx. You need to make sure MPL uses > the wx-config that came with the version of wxPython you installed > instead. > > I think it's in /usr/local/lib/wxPython-Something-or-other/bin/ > wxconfig > > There is an environment variable you can set to tell MPL's setup.py > where to look for it. It escapes me for the moment what it's > called, but poke around setup.py and friends and you'll find it. > > When you've got this all working, it would be great if you could > contribute a binary mpkg to pythonmac.org. > > How did you link libpng and libfreetype? Statically I hope, so that > a binary would be useful to everyone. > > -Chris > > > > -- > Christopher Barker, Ph.D. > Oceanographer > > NOAA/OR&R/HAZMAT (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chr...@no... > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the > live webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ********************************************************************** 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" **********************************************************************