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
(35) |
2
(29) |
3
(12) |
4
|
5
(8) |
6
(5) |
7
(3) |
8
(38) |
9
(15) |
10
(20) |
11
(14) |
12
(12) |
13
(17) |
14
(6) |
15
(41) |
16
(38) |
17
(31) |
18
(7) |
19
(14) |
20
(12) |
21
(3) |
22
(3) |
23
(15) |
24
(4) |
25
|
26
(3) |
27
(2) |
28
(7) |
29
(16) |
30
(17) |
31
(10) |
|
|
|
I downloaded keypress_demo.py from the matplotlib website runs as follows ./keypress_demo.py (then typed letter 'c') Exception in Tkinter callback Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py", line 1403, in __call__ return self.func(*args) File "/Library/Python/2.5/site-packages/matplotlib/backends/backend_tkagg.py", line 312, in key_press FigureCanvasBase.key_press_event(self, key, guiEvent=event) File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", line 1122, in key_press_event self.callbacks.process(s, event) File "/Library/Python/2.5/site-packages/matplotlib/cbook.py", line 155, in process func(*args, **kwargs) File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", line 1626, in key_press self.canvas.toolbar.back() AttributeError: FigureCanvasTkAgg instance has no attribute 'toolbar' now you are making me think something is wrong with my build, but this is an out of the box laptop, 10.5, numpy 1.2.1, zlib-1.2.3, freetype-2.3.7, libpng-1.2.33, then build matplotlib-0.98.5 J note: i backed down to 0.98.3, it works fine John Hunter wrote: > On Wed, Dec 17, 2008 at 1:24 PM, James Schombert <jsc...@uo...> wrote: >> Using matplotlib 0.98.5 on OSX 10.5, the following error >> occurs for many key_press events using the standard >> connect class - letter such as c,v,s etc (and most important, backspace) >> >> Exception in Tkinter callback >> Traceback (most recent call last): >> File >> "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py", >> line 1403, in __call__ >> return self.func(*args) >> File >> "/Library/Python/2.5/site-packages/matplotlib/backends/backend_tkagg.py",line >> 312, in key_press >> FigureCanvasBase.key_press_event(self, key, guiEvent=event) >> File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", >> line 1122, in key_press_event >> self.callbacks.process(s, event) >> File "/Library/Python/2.5/site-packages/matplotlib/cbook.py", line 155, >> in process >> func(*args, **kwargs) >> File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", >> line 1626, in key_press >> self.canvas.toolbar.back() >> AttributeError: FigureCanvasTkAgg instance has no attribute 'toolbar' >> >> would a full list of the "bad" keys help > > I am not seeing this on the 0.98.5 release candidate. I fire up > > > python simple_plot.py -dTkAgg > > and click 'c' somewhere on the figure/axes, or 'delete' and I am not > getting the traceback. > > JDH
On Wed, Dec 17, 2008 at 4:50 PM, Kaushik Ghose <Kau...@hm...> wrote: > Hi John, > > I tried the .egg package but no joy. > > Thanks > -Kaushik > > sudo rm -rf > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > sudo easy_install matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg > Processing matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg > creating > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg > Extracting matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg to > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages > Adding matplotlib 0.98.5.1-r0 to easy-install.pth file > > Installed > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg > Processing dependencies for matplotlib==0.98.5.1-r0 > Searching for matplotlib==0.98.5.1-r0 > Reading http://pypi.python.org/simple/matplotlib/ > Reading http://matplotlib.sourceforge.net > Reading http://sourceforge.net/project/showfiles.php?group_id=80706 > Reading > https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194 > Reading > https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 > No local packages or download links found for matplotlib==0.98.5.1-r0 > error: Could not find suitable distribution for > Requirement.parse('matplotlib==0.98.5.1-r0') Eggs are an abomination -- the person who named the installer "easy_install" should have their license revoked. I think we may distributing them because they are simply broken in too many ways. This recurring problem -- where the easy_install goes looking on pypi for an egg even though you are pointing at one locally on the file system, is simply ridiculous. Chris Barker suggests renaming the egg to matplotlib-0.98.5-py2.5.egg. Try that, and please let me know. Thanks for the testing. JDH
On Wed, Dec 17, 2008 at 4:43 PM, Kaushik Ghose <Kau...@hm...> wrote: > Hi John, > > The install goes fine, but I come up blank on the import. > > Thanks > -Kaushik > > sudo rm -rf > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > sudo installer -pkg matplotlib-0.98.5.1-py2.5-macosx10.5.mpkg -target / > installer: Package name is matplotlib 0.98.5.1-r0 > installer: Installing at base path / > installer: The install was successful. > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > In [1]: import pylab Please run the following commands after cleaning the previous installs and reinstalling the mpkg file:: ls python -c 'import matplotlib; print matplotlib.__file__' python -c 'import matplotlib; print matplotlib.__version__' python -c 'import pylab' The ls is important because sometimes a person has a directory named 'matplotlib' in their local path, and this is getting picked rather than the installed matplotlib which contains the pylab module. JDH
Hi John, I tried the .egg package but no joy. Thanks -Kaushik sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sudo easy_install matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg Processing matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg creating /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg Extracting matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg to /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages Adding matplotlib 0.98.5.1-r0 to easy-install.pth file Installed /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.1_r0-py2.5-macosx-10.3-fat.egg Processing dependencies for matplotlib==0.98.5.1-r0 Searching for matplotlib==0.98.5.1-r0 Reading http://pypi.python.org/simple/matplotlib/ Reading http://matplotlib.sourceforge.net Reading http://sourceforge.net/project/showfiles.php?group_id=80706 Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194 Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 No local packages or download links found for matplotlib==0.98.5.1-r0 error: Could not find suitable distribution for Requirement.parse('matplotlib==0.98.5.1-r0') John Hunter wrote: > On Wed, Dec 17, 2008 at 2:29 PM, Kaushik Ghose > <Kau...@hm...> wrote: >> Hi Everyone, >> >> I am running into a problem when trying to install 0.98.5 egg on a Mac OS X >> machine. Any help much appreciated. Relevant error messages follow: > > I posted binaries to fix this problem and have requested testers, so > please try the binaries at > > https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644 > > You might want to be sure to delete the old dir to get a clean install > >> sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* > > before installing the new. Let me know how it goes. > > JDH
Hi John, The install goes fine, but I come up blank on the import. Thanks -Kaushik sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sudo installer -pkg matplotlib-0.98.5.1-py2.5-macosx10.5.mpkg -target / installer: Package name is matplotlib 0.98.5.1-r0 installer: Installing at base path / installer: The install was successful. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ In [1]: import pylab --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /Users/kghose/Source/<ipython console> in <module>() /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py in <module>() ----> 1 from matplotlib.pylab import * 2 import matplotlib.pylab 3 __doc__ = matplotlib.pylab.__doc__ ImportError: No module named pylab ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ John Hunter wrote: > On Wed, Dec 17, 2008 at 2:29 PM, Kaushik Ghose > <Kau...@hm...> wrote: >> Hi Everyone, >> >> I am running into a problem when trying to install 0.98.5 egg on a Mac OS X >> machine. Any help much appreciated. Relevant error messages follow: > > I posted binaries to fix this problem and have requested testers, so > please try the binaries at > > https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644 > > You might want to be sure to delete the old dir to get a clean install > >> sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* > > before installing the new. Let me know how it goes. > > JDH
Heh, Sorry. Thanks for the link though and Happy Holidays! -Kaushik John Hunter wrote: > On Wed, Dec 17, 2008 at 2:32 PM, Kaushik Ghose > <Kau...@hm...> wrote: >> Hi Everyone, >> >> I am running into a problem when trying to install 0.98.5 egg on a Mac OS X >> machine. Any help much appreciated. Relevant error messages follow: > > Did you miss my repeated posts on this subject, asking for people to > test the new binaries that (hopefully) have fixed this problem? > > https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644
On Wed, Dec 17, 2008 at 2:32 PM, Kaushik Ghose <Kau...@hm...> wrote: > Hi Everyone, > > I am running into a problem when trying to install 0.98.5 egg on a Mac OS X > machine. Any help much appreciated. Relevant error messages follow: Did you miss my repeated posts on this subject, asking for people to test the new binaries that (hopefully) have fixed this problem? https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644
On Wed, Dec 17, 2008 at 2:29 PM, Kaushik Ghose <Kau...@hm...> wrote: > Hi Everyone, > > I am running into a problem when trying to install 0.98.5 egg on a Mac OS X > machine. Any help much appreciated. Relevant error messages follow: I posted binaries to fix this problem and have requested testers, so please try the binaries at https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644 You might want to be sure to delete the old dir to get a clean install > sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib* before installing the new. Let me know how it goes. JDH
Hi Everyone, I am running into a problem when trying to install 0.98.5 egg on a Mac OS X machine. Any help much appreciated. Relevant error messages follow: Thanks -Kaushik sudo easy_install matplotlib-0.98.5-py2.5-macosx-10.3.egg********************************************************************** ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.98.5 python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.2.1 freetype2: found, but unknown version (no pkg-config) OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: no * wxPython not found Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: yes Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: 2008c OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: /bin/sh: gs: command not found latex: no EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES configobj: matplotlib will provide enthought.traits: no [Edit setup.cfg to suppress the above messages] ============================================================================ error: lib/matplotlib/mpl-data/matplotlib.conf.template: No such file or directory Exception exceptions.OSError: (2, 'No such file or directory', 'src/image.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0xf61120>> ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/path.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0xf48968>> ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0xf48c38>> ignored From within ipython:*************************************************************************************************** In [1]: import pylab --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /Users/kghose/<ipython console> in <module>() /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/pylab.py in <module>() ----> 1 from matplotlib.pylab import * 2 import matplotlib.pylab 3 __doc__ = matplotlib.pylab.__doc__ /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/pylab.py in <module>() 204 from numpy import ma 205 --> 206 from matplotlib import mpl # pulls in most modules 207 208 from matplotlib.dates import date2num, num2date,\ /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/mpl.py in <module>() 2 from matplotlib import axis ----> 3 from matplotlib import axes 4 from matplotlib import cbook 5 from matplotlib import collections 6 from matplotlib import colors /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/axes.py in <module>() 16 import matplotlib.dates as mdates 17 import matplotlib.font_manager as font_manager ---> 18 import matplotlib.image as mimage 19 import matplotlib.legend as mlegend 20 import matplotlib.lines as mlines /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/image.py in <module>() 17 # For clarity, names from _image are given explicitly in this module: 18 from matplotlib import _image ---> 19 from matplotlib import _png 20 21 # For user convenience, the names from _image are also imported into ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/_png.so, 2): Library not loaded: /usr/local/lib/libpng12.0.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/_png.so Reason: image not found In [2]:
Hi Everyone, I am running into a problem when trying to install 0.98.5 egg on a Mac OS X machine. Any help much appreciated. Relevant error messages follow: Thanks -Kaushik sudo easy_install matplotlib-0.98.5-py2.5-macosx-10.3.egg********************************************************************** ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.98.5 python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.2.1 freetype2: found, but unknown version (no pkg-config) OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: no * wxPython not found Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: yes Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: 2008c OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: /bin/sh: gs: command not found latex: no EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES configobj: matplotlib will provide enthought.traits: no [Edit setup.cfg to suppress the above messages] ============================================================================ error: lib/matplotlib/mpl-data/matplotlib.conf.template: No such file or directory Exception exceptions.OSError: (2, 'No such file or directory', 'src/image.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0xf61120>> ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/path.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0xf48968>> ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0xf48c38>> ignored From within ipython:*************************************************************************************************** In [1]: import pylab --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /Users/kghose/<ipython console> in <module>() /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/pylab.py in <module>() ----> 1 from matplotlib.pylab import * 2 import matplotlib.pylab 3 __doc__ = matplotlib.pylab.__doc__ /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/pylab.py in <module>() 204 from numpy import ma 205 --> 206 from matplotlib import mpl # pulls in most modules 207 208 from matplotlib.dates import date2num, num2date,\ /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/mpl.py in <module>() 2 from matplotlib import axis ----> 3 from matplotlib import axes 4 from matplotlib import cbook 5 from matplotlib import collections 6 from matplotlib import colors /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/axes.py in <module>() 16 import matplotlib.dates as mdates 17 import matplotlib.font_manager as font_manager ---> 18 import matplotlib.image as mimage 19 import matplotlib.legend as mlegend 20 import matplotlib.lines as mlines /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/image.py in <module>() 17 # For clarity, names from _image are given explicitly in this module: 18 from matplotlib import _image ---> 19 from matplotlib import _png 20 21 # For user convenience, the names from _image are also imported into ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/_png.so, 2): Library not loaded: /usr/local/lib/libpng12.0.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/_png.so Reason: image not found In [2]:
On Wed, Dec 17, 2008 at 12:22 PM, Matthias Michler <Mat...@gm...> wrote: > Hello John and others, > > my favorite solution is: >> * axes param: specific for a given axes in figure; interface would >> be something like >> >> ax.auto_toolbar_keys(False) This is on my list of things to do.... JDH
On Wed, Dec 17, 2008 at 1:24 PM, James Schombert <jsc...@uo...> wrote: > Using matplotlib 0.98.5 on OSX 10.5, the following error > occurs for many key_press events using the standard > connect class - letter such as c,v,s etc (and most important, backspace) > > Exception in Tkinter callback > Traceback (most recent call last): > File > "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py", > line 1403, in __call__ > return self.func(*args) > File > "/Library/Python/2.5/site-packages/matplotlib/backends/backend_tkagg.py",line > 312, in key_press > FigureCanvasBase.key_press_event(self, key, guiEvent=event) > File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", > line 1122, in key_press_event > self.callbacks.process(s, event) > File "/Library/Python/2.5/site-packages/matplotlib/cbook.py", line 155, > in process > func(*args, **kwargs) > File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", > line 1626, in key_press > self.canvas.toolbar.back() > AttributeError: FigureCanvasTkAgg instance has no attribute 'toolbar' > > would a full list of the "bad" keys help I am not seeing this on the 0.98.5 release candidate. I fire up > python simple_plot.py -dTkAgg and click 'c' somewhere on the figure/axes, or 'delete' and I am not getting the traceback. JDH
Using matplotlib 0.98.5 on OSX 10.5, the following error occurs for many key_press events using the standard connect class - letter such as c,v,s etc (and most important, backspace) Exception in Tkinter callback Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py", line 1403, in __call__ return self.func(*args) File "/Library/Python/2.5/site-packages/matplotlib/backends/backend_tkagg.py",line 312, in key_press FigureCanvasBase.key_press_event(self, key, guiEvent=event) File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", line 1122, in key_press_event self.callbacks.process(s, event) File "/Library/Python/2.5/site-packages/matplotlib/cbook.py", line 155, in process func(*args, **kwargs) File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", line 1626, in key_press self.canvas.toolbar.back() AttributeError: FigureCanvasTkAgg instance has no attribute 'toolbar' would a full list of the "bad" keys help? J
Dear Jeff, 2008年12月17日 Jeff Whitaker <js...@fa...>: > Mauro: Say you create a cylindrical basemap with lon_0=180. The > longitudinal extent of the map will be lon=0 to lon=360. If you then plot a > point with a longitude of -60, it will be off the map to the left (similar > to what your example plot shows). The solution is to renormalize the > longitudes of the points your are plotting to be within 0 and 360 (by adding > 360 if the longitude is negative). Thanks for the explanation -- it is obvious in retrospect! (Have to find the nearest wall...). With best regards, -- Dr. Mauro J. Cavalcanti Ecoinformatics Studio P.O. Box 46521, CEP 20551-970 Rio de Janeiro, RJ, BRASIL E-mail: mau...@gm... Web: http://studio.infobio.net Linux Registered User #473524 * Ubuntu User #22717 "Life is complex. It consists of real and imaginary parts."
On Wed, Dec 17, 2008 at 1:07 PM, Jae-Joon Lee <lee...@gm...> wrote: > On Wed, Dec 17, 2008 at 9:09 AM, Ken Schutte <kts...@gm...> wrote: > > On Wed, Dec 17, 2008 at 1:49 AM, Jae-Joon Lee <lee...@gm...> > wrote: > >> > >> This is a correct way indeed. > >> I believe that you considered it as a plain line because the arrow > >> head is too small. > >> You need to adjust the mutation_scale parameter. Try > >> > >> c = matplotlib.patches.FancyArrowPatch((0.2, 0.2), (0.5, 0.5), > >> arrowstyle="->", mutation_scale=20.) > >> > >> Maybe the defaults need to be changed. > > > > Great. Is there a way to draw filled in arrow heads? > > > > I'm thinking of arrows like those made by graphviz, such as, > > http://www.graphviz.org/Gallery/directed/fsm.html > > > > The closest I can seem to get is like this, > > c = matplotlib.patches.FancyArrowPatch((0.2, 0.2), (0.5, 0.5), > > arrowstyle="simple", linewidth=0.1, fc='k',mutation_scale=20.) > > > > (a) I don't know if this is possible if the whole arrow is implemented as > a > > single polygon (i.e. to draw line with a triangle head), and (b) I'm a > bit > > confused about the kwargs to the different things like axes.arrow, > > FancyArrowPatch, ArrowStyle, etc. (for example, arrow takes 'headwidth', > > but FancyArrowPatch does not.). > > > > (a) As of now, there is no arrowclass that meets your need. The arrow > is implemented as a single path, and it IS still possible to draw a > line+a triangle. But, the artist only has a single "fill" mode and it > is impossible to fill only a part of the path. It may be relatively > easy to support. I'll take a look into it. > > > (b) The FancyArrowPatch was very recently introduced and it's argument > is not consistent with previous ones (Arrow,FancyArrow, YAArrow). > Unlike other classes, FancyArrowPatch itself does not know how to draw > an arrow. It delegates it to ArrowStyle. So, If you want to use > FancyArrowPatch, "headwidth" should be given to ArrowStyle not to > FancyArrowPatch itself. I agree this can be a bit confusing, but all > the arrow-related parameters should be given to the style class. > > Take a look at "annotation_demo2.py" and see how it specifies the > arrowstyle (and also connectionstyle). The 'arrowprops' parameter in > the annotate function is mostly consumed by FancyArrowPatch class. > > Regards, > > -JJ > Thanks for the reply. I will be taking a look at the code, and if I come up with anything useful, I can post it. (It might be nice if eventually there were extra styles, e.g. "-|>", "<|-|>" for single lines with solid arrowheads). Ken
Mauro Cavalcanti wrote: > Dear Jeff & ALL, > > When trying to plot a set of points in Basemap using an > Equirectangular projection centered on a longitude different from the > default (using the parameter lon_0 to generate a map centered on the > desired longitude), I end up with a stange plot like the one attached > to this message (ie., all the points are plotted "over the edge of the > world"). Has Basemap been taught about the sphericity of the Earth? > (just a joke!) > > N.B. This happens no matter if I call ax.cla() (where ax is an > instance of figure.axes) and reload all the dataset after changing the > longitude. > > Any hints? > Mauro: Say you create a cylindrical basemap with lon_0=180. The longitudinal extent of the map will be lon=0 to lon=360. If you then plot a point with a longitude of -60, it will be off the map to the left (similar to what your example plot shows). The solution is to renormalize the longitudes of the points your are plotting to be within 0 and 360 (by adding 360 if the longitude is negative). -Jeff > With warmest regards, > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
I uploaded new OSX binary eggs and a mpkg file to the sourceforge site. We have at least one more bugfix release to push out later, and before I do that I'd really like to know if the current installers resolve the known problems. If you have an OS X platfor to test on, I'd like to hear from you https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644
Dear Jeff & ALL, When trying to plot a set of points in Basemap using an Equirectangular projection centered on a longitude different from the default (using the parameter lon_0 to generate a map centered on the desired longitude), I end up with a stange plot like the one attached to this message (ie., all the points are plotted "over the edge of the world"). Has Basemap been taught about the sphericity of the Earth? (just a joke!) N.B. This happens no matter if I call ax.cla() (where ax is an instance of figure.axes) and reload all the dataset after changing the longitude. Any hints? With warmest regards, -- Dr. Mauro J. Cavalcanti Ecoinformatics Studio P.O. Box 46521, CEP 20551-970 Rio de Janeiro, RJ, BRASIL E-mail: mau...@gm... Web: http://studio.infobio.net Linux Registered User #473524 * Ubuntu User #22717 "Life is complex. It consists of real and imaginary parts."
On Wed, Dec 17, 2008 at 9:09 AM, Ken Schutte <kts...@gm...> wrote: > On Wed, Dec 17, 2008 at 1:49 AM, Jae-Joon Lee <lee...@gm...> wrote: >> >> This is a correct way indeed. >> I believe that you considered it as a plain line because the arrow >> head is too small. >> You need to adjust the mutation_scale parameter. Try >> >> c = matplotlib.patches.FancyArrowPatch((0.2, 0.2), (0.5, 0.5), >> arrowstyle="->", mutation_scale=20.) >> >> Maybe the defaults need to be changed. > > Great. Is there a way to draw filled in arrow heads? > > I'm thinking of arrows like those made by graphviz, such as, > http://www.graphviz.org/Gallery/directed/fsm.html > > The closest I can seem to get is like this, > c = matplotlib.patches.FancyArrowPatch((0.2, 0.2), (0.5, 0.5), > arrowstyle="simple", linewidth=0.1, fc='k',mutation_scale=20.) > > (a) I don't know if this is possible if the whole arrow is implemented as a > single polygon (i.e. to draw line with a triangle head), and (b) I'm a bit > confused about the kwargs to the different things like axes.arrow, > FancyArrowPatch, ArrowStyle, etc. (for example, arrow takes 'headwidth', > but FancyArrowPatch does not.). > (a) As of now, there is no arrowclass that meets your need. The arrow is implemented as a single path, and it IS still possible to draw a line+a triangle. But, the artist only has a single "fill" mode and it is impossible to fill only a part of the path. It may be relatively easy to support. I'll take a look into it. (b) The FancyArrowPatch was very recently introduced and it's argument is not consistent with previous ones (Arrow,FancyArrow, YAArrow). Unlike other classes, FancyArrowPatch itself does not know how to draw an arrow. It delegates it to ArrowStyle. So, If you want to use FancyArrowPatch, "headwidth" should be given to ArrowStyle not to FancyArrowPatch itself. I agree this can be a bit confusing, but all the arrow-related parameters should be given to the style class. Take a look at "annotation_demo2.py" and see how it specifies the arrowstyle (and also connectionstyle). The 'arrowprops' parameter in the annotate function is mostly consumed by FancyArrowPatch class. Regards, -JJ > Thanks a lot, > Ken > >
Hi Jeff, Thanks very much for this bit of code that you sent me. I got some graph paper out and plotted all of the axes in your code and it finally all made sense. Roger -- On Fri, Dec 12, 2008 at 3:50 PM, Roger André <ra...@gm...> wrote: > Thanks Jeff, > > I'll study your code and will see if I can adapt it for my use. > > Great tool also, > > Roger > -- > > > On Fri, Dec 12, 2008 at 3:20 PM, Jeff Whitaker <js...@fa...> wrote: > >> Roger André wrote: >> >>> Hi All, >>> >>> I'm very new to Matplotlib and am having some trouble getting a colorbar >>> to be positioned and sized I want it to. A big part of the problem is that >>> I have adapted several examples from the Cookbook and Gallery, just to see >>> if I could roughly approximate what I want to see, and now am having trouble >>> integrating the different pieces. Specifically, I can't seem to resolve >>> when to use add_subplot vs. add_axes. Below are 2 examples of code. The >>> first one shows correct layout of a data figure and a separate colorbar >>> below it. The colorbar is the correct size, and is located in the right >>> spot. The second example has the correct data mapped in it using the >>> basemap module, but I cannot get the colorbar to move up closer to the >>> figure, or to shrink it. Could someone advise me on this? I've looked at >>> the "Artist tutorial", and although it is very well written, I'm still not >>> sure how to get this done . >>> >>> Thanks in advance, >>> >>> Roger >>> >> >> Roger: I usually explicity two separate axes instances, one for the plot >> and one for the colorbar. The location of the axes always takes a bit of >> tweaking to get right. Here's an example: >> >> from mpl_toolkits.basemap import Basemap >> import matplotlib.pyplot as plt >> import numpy as np >> # create figure instance. >> fig = plt.figure(figsize=(8,8)) >> # create an axes instance, leaving room for colorbars on right and bottom. >> ax = fig.add_axes([0.05,0.15,0.8,0.8]) # color on bottom >> # set up orthographic map projection with >> # perspective of satellite looking down at 50N, 100W. >> # use low resolution coastlines. >> map = Basemap(projection='ortho',lat_0=50,lon_0=-100,resolution='c') >> # draw coastlines, country boundaries, fill continents. >> map.drawcoastlines() >> # draw the edge of the map projection region (the projection limb) >> map.drawmapboundary() >> # draw lat/lon grid lines every 30 degrees. >> map.drawmeridians(np.arange(0,360,30)) >> map.drawparallels(np.arange(-90,90,30)) >> # make up some data on a regular lat/lon grid. >> nlats = 73; nlons = 145; delta = 2.*np.pi/(nlons-1) >> lats = (0.5*np.pi-delta*np.indices((nlats,nlons))[0,:,:]) >> lons = (delta*np.indices((nlats,nlons))[1,:,:]) >> wave = 0.75*(np.sin(2.*lats)**8*np.cos(4.*lons)) >> mean = 0.5*np.cos(2.*lats)*((np.sin(2.*lats))**2 + 2.) >> # compute native map projection coordinates of lat/lon grid. >> x, y = map(lons*180./np.pi, lats*180./np.pi) >> # contour data over the map. >> cs = map.contourf(x,y,wave+mean,15) >> # get axes bounds. >> pos = ax.get_position() >> l, b, w, h = pos.bounds >> # create axes instance for colorbar on right. >> cax = plt.axes([l+w+0.03, b, 0.04, h]) >> # draw colorbar on right. >> plt.colorbar(cax=cax,orientation='vertical') >> # create axes instance for colorbar on bottom. >> cax = plt.axes([l, b-0.07, w, 0.04]) >> # draw colorbar on bottom. >> plt.colorbar(cax=cax,orientation='horizontal') >> plt.show() >> >> HTH, >> >> -Jeff >> >>> ------------- >>> >>> Example 1: >>> >>> #! /usr/bin/python >>> >>> import matplotlib.pyplot as plt >>> import numpy as np >>> from numpy.random import randn >>> from matplotlib import mpl >>> >>> # Make plot with horizontal colorbar >>> >>> fig = plt.figure(figsize=(7,8)) >>> ax = fig.add_subplot(111) >>> >>> # 'add_axes' for color bar >>> ax1 = fig.add_axes([0.25, .07, 0.5, 0.03]) # [x_loc, y_loc, x_size, >>> y_size] >>> >>> data = np.clip(randn(250, 250), -1, 1) # DATA FOR SQUARE FIG >>> ax.imshow(data, interpolation='nearest') # DRAW DATA IN SQUARE FIG >>> >>> ax.set_title('Monthly PCP percentiles for 9-2008') >>> >>> ########### Colorbar Settings ######## >>> cmap = mpl.cm.cool >>> norm = mpl.colors.Normalize(vmin=0.0, vmax=1.0) >>> cb1 = mpl.colorbar.ColorbarBase(ax1, cmap=cmap, norm=norm, >>> orientation='horizontal') >>> cb1.set_label('percentile') >>> ################################ >>> >>> plt.show() >>> fig.savefig('test.png') >>> >>> >>> -------------------------------------------------------------------------------------------- >>> Example 2: >>> >>> #! /usr/bin/python >>> >>> """taken from geos_demo_2.py""" >>> >>> from PIL import Image >>> from mpl_toolkits.basemap import Basemap >>> import numpy as np >>> import matplotlib >>> from matplotlib import mpl >>> import matplotlib.pyplot as plt >>> from matplotlib.image import pil_to_array >>> >>> plot_name = 'hydro_demo.png' >>> overlay_color = 'black' >>> >>> # read in jpeg image to rgb array >>> pilImage = Image.open('wms_mapser.png') >>> >>> #data = asarray(pilImage) >>> data = pil_to_array(pilImage) >>> data = data[:, :, :] # get data from RGB channels of image >>> >>> # define data region and projection parameters >>> ll_lon = -125 >>> ll_lat = 39 >>> ur_lon = -108 >>> ur_lat = 54 >>> lon_0 = 0 >>> >>> >>> fig = plt.figure(figsize=(7,8)) >>> #ax = fig.add_axes((0.1,0.1,0.8,0.8)) >>> ax = fig.add_axes((.1,0.1,0.8,0.8)) >>> >>> # create Basemap instance for cylindrical equidistant projection, htdro >>> image domain >>> m = Basemap(projection='cyl', lon_0=lon_0, llcrnrlon=ll_lon, >>> llcrnrlat=ll_lat, urcrnrlon=ur_lon, >>> urcrnrlat=ur_lat, suppress_ticks=False) >>> >>> # add data >>> cmap = mpl.cm.cool >>> m.imshow(data, cmap, interpolation=None) >>> plt.clim(0, 1) >>> >>> # add a colobar >>> plt.colorbar(orientation='horizontal') >>> >>> # add timestamp and save >>> fig = plt.gcf() >>> >>> # ADD FIGURE TEXT >>> fig.text(x=0.5, y=0.1, >>> s='percentile', >>> fontsize=10, >>> ) >>> >>> fig.set_size_inches((7,7)) >>> >>> # ADD A FIGURE TITLE >>> plt.title('Monthly PCP percentiles for 9-2008',y=1.05,fontsize=12) >>> >>> plt.show() >>> #fig.savefig(plot_name) >>> #print 'Plot saved to %s' % (plot_name) >>> ------------------------------------------------------------------------ >>> >>> >>> ------------------------------------------------------------------------------ >>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, >>> Nevada. >>> The future of the web can't happen without you. Join us at MIX09 to help >>> pave the way to the Next Web now. Learn more and register at >>> >>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >> >> >> -- >> Jeffrey S. Whitaker Phone : (303)497-6313 >> Meteorologist FAX : (303)497-6449 >> NOAA/OAR/PSD R/PSD1 Email : Jef...@no... >> 325 Broadway Office : Skaggs Research Cntr 1D-113 >> Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg >> >> >
On Mon, Dec 15, 2008 at 11:22 AM, Alejandro Weinstein <ale...@gm...> wrote: > Is anybody aware of the MPL bug on Ubuntu intrepid? > > https://bugs.launchpad.net/ubuntu/+source/matplotlib/+bug/299381 The problem is caused by outdated *.pyc files. The solution is sudo python -c 'import matplotlib'
On Wed, Dec 17, 2008 at 1:49 AM, Jae-Joon Lee <lee...@gm...> wrote: > > This is a correct way indeed. > I believe that you considered it as a plain line because the arrow > head is too small. > You need to adjust the mutation_scale parameter. Try > > c = matplotlib.patches.FancyArrowPatch((0.2, 0.2), (0.5, 0.5), > arrowstyle="->", mutation_scale=20.) > > Maybe the defaults need to be changed. Great. Is there a way to draw filled in arrow heads? I'm thinking of arrows like those made by graphviz, such as, http://www.graphviz.org/Gallery/directed/fsm.html The closest I can seem to get is like this, c = matplotlib.patches.FancyArrowPatch((0.2, 0.2), (0.5, 0.5), arrowstyle="simple", linewidth=0.1, fc='k',mutation_scale=20.) (a) I don't know if this is possible if the whole arrow is implemented as a single polygon (i.e. to draw line with a triangle head), and (b) I'm a bit confused about the kwargs to the different things like axes.arrow, FancyArrowPatch, ArrowStyle, etc. (for example, arrow takes 'headwidth', but FancyArrowPatch does not.). Thanks a lot, Ken
On Mon, Dec 15, 2008 at 2:44 PM, John Hunter <jd...@gm...> wrote: > I am not sure what figimage should mean for a vector backend so I want > to hear from Perry who motivated the function. When I implemented it > on his original request, I understood it to be a raw pixel dump to the > canvas with no scaling, no interpolation, etc.... What does a pixel > dump to a canvas mean for a vector backend? I think we could define > something that was at least consistent, but we should probably hear > from Perry et al who are presumably using the function. After sleeping on this overnight, I think the answer here is clear. figimage is meant to be a pixel dump, so we should just treat a pixel as a dot. When dpi is increased, the number of dots on the canvas increases so the figimage should look smaller. I added your patch and support for magnification to figimage -- the output looks right for PNG, PDF and EPS -- svg still not. I haven't had a chance to look but perhaps SVG does not utilize the magnification param. I'll check into this later. JDH
On 10-Dec-08, at 3:11 PM, Ryan Wagner wrote: > Hi Everyone, > Does anyone know the long term plans of fixing Axes3d / Mplot3D > in MPL? Is this ever going to be re-incorporated in this library in > the future? Just wondering... > -Ryan Wagner Oddly, this hasn't been answered, so I will, but as I understand it from previous list conversations: no, there are no plans to bring back 3D capabilities in MPL. Take a look at https://svn.enthought.com/enthought/wiki/MayaVi for your 3D plotting needs, it's quite well supported by Enthought and can be used in tandem with MPL in the same ipython session. David
Ken, On Wed, Dec 17, 2008 at 1:14 AM, Ken Schutte <kts...@gm...> wrote: > This new FancyArrow stuff looks great, but I'm having trouble getting it to > work. All of the gallery examples I see seem to only use it thru an > 'annotate' call. I just want to draw these arrows directly. > > I tried the following, but it just draws a plain line: > > ax = gca() > c = matplotlib.patches.FancyArrowPatch((0.2, 0.2), (0.5, 0.5), > arrowstyle="->") > ax.add_patch(c) This is a correct way indeed. I believe that you considered it as a plain line because the arrow head is too small. You need to adjust the mutation_scale parameter. Try c = matplotlib.patches.FancyArrowPatch((0.2, 0.2), (0.5, 0.5), arrowstyle="->", mutation_scale=20.) Maybe the defaults need to be changed. > > I also tried uisng __call__ on an ArrowStyle instance: > > a = matplotlib.patches.ArrowStyle.Fancy(head_length=.4, head_width=.4, > tail_width=.4) > pth = matplotlib.path.Path( [[.3,.1],[.7,.5]] ) > a(pth,1,1) > > This gives an error. (it looks like it tries to access path.codes[:], which > from what I can tell shouldn't be accessed directly - so maybe this is a > bug?). This method is not intended to be called directly by user. Currently, the first argument of the __call__ method should be a path with path.codes != None. It can be a straight line, but still you have to explicitly set its codes. Futhemore, some arrow classes (Simple, Fancy and Wedge) only accept a single segment of cubic bezier line. FancyArrowPatch internally uses ConnectionStyle class to create bezier cuve. Take a look if you're interested in. IHTH, -JJ > > Any hints on how to draw FancyArrow? > > thanks, > Ken > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >