SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

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
(19)
2
(3)
3
(12)
4
(2)
5
6
(9)
7
(27)
8
(39)
9
(17)
10
(22)
11
(5)
12
(1)
13
(11)
14
(12)
15
(14)
16
(29)
17
(32)
18
(8)
19
(3)
20
(10)
21
(27)
22
(11)
23
(8)
24
(4)
25
(4)
26
(3)
27
(18)
28
(7)
29
(29)
30
(13)
31
(4)

Showing 22 results of 22

From: Chris S. <seb...@sp...> - 2006年03月10日 22:52:22
I made my plot PNGs transparent. For some reason this works
in Firefox but not in Internet Explorer.
Anyone know why?
chris
--=20
_______________________________________
Christian Seberino, Ph.D.
SPAWAR Systems Center San Diego
Code 2872
49258 Mills Street, Room 158
San Diego, CA 92152-5385
U.S.A.
Phone: (619) 553-9973
Fax : (619) 553-0804
Email: seb...@sp...
_______________________________________
From: Christopher B. <Chr...@no...> - 2006年03月10日 21:00:38
Robert Hetland wrote:
> and was 
> also recognized by my own install of python 2.4 (into /usr/local).
Rob,
Is there a reason you didn't try the new Universal Framework Build of 
Python 2.4.2? Or did you not know about it? I'd like to get as many 
packages as possible working with that. (and built and contributed to 
pythonmac.org)
See this post from python-mac list:
"""
I've spent some time on an 10.3 box and updated the installer as a
result of that.
The universal python installer should now be complete, except for
remaining bugs obviously. I have however not tested it on an Intel
box yet.
* The installer works on 10.3 and 10.4
* regrtest -uall passes on 10.3/ppc, 10.4/ppc
* compiling extensions works on 10.3
* the existing (non-universal) wxPython installer installs fine and
results in a working wxPython installation (on PPC only of course) on
10.3, which indicates that existing C++ extensions should work just
fine with the universal build
* IDLE works, including the local documentation
* Profile updater works
New from the previous release:
* Locally installed documentation can be accessed from IDLE
* Minor changes to the profile updater, and it is now also installed
in /Application/MacPython 2.4
* Building extensions works on 10.3
* Various minor bugfixes
There is one minor issue: the curses module doesn't work on OSX 10.3,
the extension is linked to a version of libncurses that isn't
available on 10.3.
Please test this version and let me know of the results (both
negative and positive). Unless major issues turn up we can do a
golden release this weekend. That release will NOT have new icons, we
can do a new release with updated icons later on.
The installer is in the Public folder of my iDisk: http://
homepage.mac.com/ronaldoussoren/.Public/Universal%20MacPython%
202.4.2.dmg
"""
-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...
From: Christopher B. <Chr...@no...> - 2006年03月10日 20:57:09
Ken McIvor wrote:
> My take on this is that wxPython-mac can't repaint the plot window if 
> it's not running its event loop.
This might have something to do with the fact that OS-X double buffers 
it's windows, so you need to force and update event somehow. A call to 
wx.Window.Refresh() and/or wx.Window.Update() might do it. However, I 
haven't had any problem with just using a wxClientDC in my apps, but I 
guess I've always been running an event loop. Maybe OS-X waits for a 
Idle event to update the screen.
What kind of app would you have running without an event loop anyway? Id 
didn't think you could do much at all without one in wx.
> Since wxPython-mac is built on top of Cocoa, I'd imagine Cocoa has 
> similar repainting problems.
wxPython-mac is built in Carbon, not Cocoa, but they do both use Quartz
-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...
From: <py...@va...> - 2006年03月10日 20:12:54
<html>=0D
=0D
<P>Thanks for the advice! The&nbsp;hack suggested by Peter works fine&nbsp;=
- even though I still get warnings when I use diifferent commands. I am ver=
y happy to see nice looking plots coming on my screen!</P>=0D
<P>The extra line in the hack suggested by John brings back the problem (ca=
using an error). <BR>
<BR>
Best </P>=0D
<P>Erik<BR>
<BR>
<B>On Fri Mar 10 17:05 , John Hunter <JDH...@AC...>sent:<B=
R>
<BR>
</P></B>=0D
<BLOCKQUOTE style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5p=
x; BORDER-LEFT: #5167c6 2px solid; MARGIN-RIGHT: 0px"><FONT color=3Dred>&gt=
;&gt;&gt;&gt;&gt; "Peter" =3D=3D Peter Wang &lt;<A href=3D"javascript:top.o=
pencompose('pw...@en...','','','')">pw...@en...</A>&gt; wri=
tes:</FONT><BR>
<BR>
Peter&gt; <A href=3D"javascript:top.opencompose('py...@va...','','',''=
)">py...@va...</A> wrote ..<BR>
&gt;&gt; When I try to import pylab, I get the error message shown<BR>
&gt;&gt; below. I also tried the earlier version of matplotlib<BR>
&gt;&gt; (matplotlib-0.87.win32-py2.3) with the same result. File<BR>
&gt;&gt; "C:\Python23\Lib\site-packages\matplotlib\font_manager.py",<BR>
&gt;&gt; line 456, in createFontDict warnings.warn("Cannot handle<BR>
&gt;&gt; unicode filenames %s"%fpath)<BR>
<BR>
Peter&gt; So, it looks like what's happening is that Matplotlib is<BR>
Peter&gt; trying to cache your font files, and as it does so, it's<BR>
Peter&gt; encountered a font whose filename has unicode characters in<BR>
Peter&gt; it. This is not a problem in and of itself, and it just<BR>
<BR>
The irony is that warning comes in unicode exception handling :-)<BR>
<BR>
Try replacing that block of code with <BR>
<BR>
try:<BR>
font =3D ft2font.FT2Font(str(fpath))<BR>
except RuntimeError:<BR>
warnings.warn("Could not open font file %s"%fpath)<BR>
continue<BR>
except UnicodeError:<BR>
warnings.warn("Cannot handle unicode filenames")<BR>
print &gt;&gt; sys.stderr, 'Bad file is', fpath<BR>
continue<BR>
<BR>
JDH<BR>
<BR>
<BR>
-------------------------------------------------------<BR>
This SF.Net email is sponsored by xPML, a groundbreaking scripting language=
<BR>
that extends applications into web and mobile media. Attend the live webcas=
t<BR>
and join the prime developer group breaking into this new coding territory!=
<BR>
<A href=3D"parse.pl?redirect=3Dhttp%3A%2F%2Fsel.as-us.falkag.net%2Fsel%3Fcm=
d%3Dlnk%26kid%3D110944%26bid%3D241720%26dat%3D121642" target=3D_blank><FONT=
 color=3Dred>http://sel.as-us.falkag.net/sel\?cmd=3Dlnk&kid=3D110944&bid=3D=
241720&dat=3D121642</FONT></A><BR>
_______________________________________________<BR>
Matplotlib-users mailing list<BR>
<A href=3D"javascript:top.opencompose('Mat...@li...urceforge.n=
et','','','')">Mat...@li...</A><BR>
<A href=3D"parse.pl?redirect=3Dhttps%3A%2F%2Flists.sourceforge.net%2Flists%=
2Flistinfo%2Fmatplotlib-users" target=3D_blank><FONT color=3Dred>https://li=
sts.sourceforge.net/lists/listinfo/matplotlib-users</FONT></A><BR>
</BLOCKQUOTE>=0D
</html><BR>=
From: Onsi F. <on...@be...> - 2006年03月10日 20:01:14
Hi Ken,
Thanks for the tip. It takes very little to get this bug on my system:
 >>> import pylab
 >>> pylab.plot([1,2])
[<matplotlib.lines.Line2D instance at 0x32b29e0>]
 >>> pylab.show()
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 "<stdin>", line 1, in ?
 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
The problem is in the _wxagg.so library which was compiled during 
install. Looking through the _wxagg.cpp code it looks like
wxPyConstructObject(bitmap, _T("wxBitmap"),1); (line 129)
is returning null. Ken, if you want me to try something let me know 
-- my guess is I'm using a different version of either the AGG 
library or wx.
As an aside, does the cpp implementation run much faster than the 
python implementation?
Onsi
On Mar 10, 2006, at 11:45 AM, Ken McIvor wrote:
> On Feb 27, 2006, at 11:19 AM, Samuel M. Smith wrote:
>> This work around worked for me. I haven't tested everything but I 
>> can make a plot successfully now with WXAgg.
>
> Sorry I'm so late in replying. I've been looking into this problem 
> today but haven't been able to reproduce it myself. Could you or 
> Onsi please send me a short script that causes the MemoryError, 
> along information about your versions of Python, wxPython, and 
> matplotlib?
>
> As an aside, you can disable the accelerator without editing 
> backend_wxagg.py:
>
> import matplotlib.backends.backend_wxagg
> matplotlib.backends.backend_wxagg._use_accelerator(False)
>
> Ken
>
>
> -------------------------------------------------------
> 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
From: Ken M. <mc...@ii...> - 2006年03月10日 19:53:51
Attachments: anim_wx.py
On Mar 7, 2006, at 6:18 PM, Samuel M. Smith wrote:
> I ran the examples/anim.py and animation works in TkAgg and it 
> worked fine.
> I ran the same script with WxAgg and animation does not work. The 
> graph window is blank during the animation.
My take on this is that wxPython-mac can't repaint the plot window if 
it's not running its event loop.
I have attached an example of animating WXAgg plots by redrawing them 
from within an idle event callback. If you're building an 
application that uses matplotlib for visualization, you can redraw 
the plot from within the running application without any problems 
(e.g. when new data arrives). You may also want to check out the 
animation_blit_wx.py example, which works more or less the same way.
> I also tried CocoaAgg with similar result except that it also 
> appears to hang. It could be a really really slow frame rate but I 
> didn't wait around to find out.
Since wxPython-mac is built on top of Cocoa, I'd imagine Cocoa has 
similar repainting problems.
Ken
From: Ken M. <mc...@ii...> - 2006年03月10日 19:45:19
On Feb 27, 2006, at 11:19 AM, Samuel M. Smith wrote:
> This work around worked for me. I haven't tested everything but I 
> can make a plot successfully now with WXAgg.
Sorry I'm so late in replying. I've been looking into this problem 
today but haven't been able to reproduce it myself. Could you or 
Onsi please send me a short script that causes the MemoryError, along 
information about your versions of Python, wxPython, and matplotlib?
As an aside, you can disable the accelerator without editing 
backend_wxagg.py:
 import matplotlib.backends.backend_wxagg
 matplotlib.backends.backend_wxagg._use_accelerator(False)
Ken
From: Robert H. <he...@ta...> - 2006年03月10日 19:20:02
I got matplotlib working on my MacBook. It was surprisingly easy.
NumPy installs right away (scipy is a different issue -- between 
gcc4.0 only and no g77 support yet...)
I installed universal binaries of png, freetype, and TeX using the i- 
Installer. This put things in the right place, and maplotlib found 
them and liked them.
I also installed my own version of python 2.4 -- the one that ships 
with the Mac has no readline, and I like readline quite a bit.. MPL 
seemed to install fine with both python versions, though, so that is 
not a big deal either way.
Finally, TkAqua is pre-installed on the MacBooks, and seems to work 
well with MPL. It is recognized by the presintalled MacPython (2.3), 
and was also recognized by my own install of python 2.4 (into /usr/ 
local).
-Rob
-----
Rob Hetland, Assistant Professor
Dept of Oceanography, Texas A&M University
p: 979-458-0096, f: 979-845-6331
e: he...@ta..., w: http://pong.tamu.edu
From: manouchk <man...@gm...> - 2006年03月10日 18:05:26
Le Vendredi 10 Mars 2006 13:47, Michaelian Ennis a =E9crit=A0:
> I am unable to install matplot lib on my new laptop. It is an intel
> based Mac. Stepping throught the install I found that build_py works
> but build_ext breaks with what looks like a couple of link errors.
> Any help would be appreciated.
>
> Ian
>
> hostname:~/src/matplotlib-0.87 mennis$ sudo python setup.py build_ext
> GTK requires pygtk
> GTKAgg requires pygtk
> running build_ext
> building 'matplotlib.backends._tkagg' extension
> gcc options: '-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -
> mno-fused-madd -fPIC -fno-common -dynamic -DNDEBUG -g -O3 -Wall -
> Wstrict-prototypes'
> compile options: '-I/System/Library/Frameworks/Tcl.framework/Headers -
> I/System/Library/Frameworks/Tcl.framework/Versions/Current/
> PrivateHeaders -I/System/Library/Frameworks/Tk.framework/Headers -I/
> System/Library/Frameworks/Tk.framework/Versions/Current/
> PrivateHeaders -I/usr/local/include -I/usr/include -I/sw/include -I. -
> Isrc -Iswig -Iagg23/include -I. -I/usr/local/include -I/usr/include -
> I/sw/include -I. -I/System/Library/Frameworks/Tcl.framework/Headers/
> freetype2 -I/System/Library/Frameworks/Tcl.framework/Versions/Current/
> PrivateHeaders/freetype2 -I/System/Library/Frameworks/Tk.framework/
> Headers/freetype2 -I/System/Library/Frameworks/Tk.framework/Versions/
> Current/PrivateHeaders/freetype2 -I/usr/local/include/freetype2 -I/
> usr/include/freetype2 -I/sw/include/freetype2 -I./freetype2 -Isrc/
> freetype2 -Iswig/freetype2 -Iagg23/include/freetype2 -I./freetype2 -I/
> usr/local/include/freetype2 -I/usr/include/freetype2 -I/sw/include/
> freetype2 -I./freetype2 -I/Library/Frameworks/Python.framework/
> Versions/2.4/include/python2.4 -c'
> extra options: '-framework Tcl -framework Tk'
> c++ -bundle -undefined dynamic_lookup build/temp.darwin-8.5.2-
> i386-2.4/src/_tkagg.o build/temp.darwin-8.5.2-i386-2.4/CXX/
> cxx_extensions.o build/temp.darwin-8.5.2-i386-2.4/CXX/cxxsupport.o
> build/temp.darwin-8.5.2-i386-2.4/CXX/IndirectPythonInterface.o build/
> temp.darwin-8.5.2-i386-2.4/CXX/cxxextensions.o -L/usr/local/lib -L/
> usr/lib -L/sw/lib -L/usr/local/lib -L/usr/lib -L/sw/lib -lpng -lz -
> lstdc++ -lm -lfreetype -lz -lstdc++ -lm -o build/lib.darwin-8.5.2-
> i386-2.4/matplotlib/backends/_tkagg.so -framework Tcl -framework Tk
> /usr/bin/ld: can't locate file for: -lpng
> collect2: ld returned 1 exit status
is it not simply, that you are missing a devel png library?
> /usr/bin/ld: can't locate file for: -lpng
> collect2: ld returned 1 exit status
> error: Command "c++ -bundle -undefined dynamic_lookup build/
> temp.darwin-8.5.2-i386-2.4/src/_tkagg.o build/temp.darwin-8.5.2-
> i386-2.4/CXX/cxx_extensions.o build/temp.darwin-8.5.2-i386-2.4/CXX/
> cxxsupport.o build/temp.darwin-8.5.2-i386-2.4/CXX/
> IndirectPythonInterface.o build/temp.darwin-8.5.2-i386-2.4/CXX/
> cxxextensions.o -L/usr/local/lib -L/usr/lib -L/sw/lib -L/usr/local/
> lib -L/usr/lib -L/sw/lib -lpng -lz -lstdc++ -lm -lfreetype -lz -lstdc+
> + -lm -o build/lib.darwin-8.5.2-i386-2.4/matplotlib/backends/
> _tkagg.so -framework Tcl -framework Tk" failed with exit status 1
> hostname:~/src/matplotlib-0.87 mennis$
From: Michaelian E. <me...@co...> - 2006年03月10日 17:32:15
I am unable to install matplot lib on my new laptop. It is an intel 
based Mac. Stepping throught the install I found that build_py works 
but build_ext breaks with what looks like a couple of link errors. 
Any help would be appreciated.
Ian
hostname:~/src/matplotlib-0.87 mennis$ sudo python setup.py build_ext
GTK requires pygtk
GTKAgg requires pygtk
running build_ext
building 'matplotlib.backends._tkagg' extension
gcc options: '-fno-strict-aliasing -Wno-long-double -no-cpp-precomp - 
mno-fused-madd -fPIC -fno-common -dynamic -DNDEBUG -g -O3 -Wall - 
Wstrict-prototypes'
compile options: '-I/System/Library/Frameworks/Tcl.framework/Headers - 
I/System/Library/Frameworks/Tcl.framework/Versions/Current/ 
PrivateHeaders -I/System/Library/Frameworks/Tk.framework/Headers -I/ 
System/Library/Frameworks/Tk.framework/Versions/Current/ 
PrivateHeaders -I/usr/local/include -I/usr/include -I/sw/include -I. - 
Isrc -Iswig -Iagg23/include -I. -I/usr/local/include -I/usr/include - 
I/sw/include -I. -I/System/Library/Frameworks/Tcl.framework/Headers/ 
freetype2 -I/System/Library/Frameworks/Tcl.framework/Versions/Current/ 
PrivateHeaders/freetype2 -I/System/Library/Frameworks/Tk.framework/ 
Headers/freetype2 -I/System/Library/Frameworks/Tk.framework/Versions/ 
Current/PrivateHeaders/freetype2 -I/usr/local/include/freetype2 -I/ 
usr/include/freetype2 -I/sw/include/freetype2 -I./freetype2 -Isrc/ 
freetype2 -Iswig/freetype2 -Iagg23/include/freetype2 -I./freetype2 -I/ 
usr/local/include/freetype2 -I/usr/include/freetype2 -I/sw/include/ 
freetype2 -I./freetype2 -I/Library/Frameworks/Python.framework/ 
Versions/2.4/include/python2.4 -c'
extra options: '-framework Tcl -framework Tk'
c++ -bundle -undefined dynamic_lookup build/temp.darwin-8.5.2- 
i386-2.4/src/_tkagg.o build/temp.darwin-8.5.2-i386-2.4/CXX/ 
cxx_extensions.o build/temp.darwin-8.5.2-i386-2.4/CXX/cxxsupport.o 
build/temp.darwin-8.5.2-i386-2.4/CXX/IndirectPythonInterface.o build/ 
temp.darwin-8.5.2-i386-2.4/CXX/cxxextensions.o -L/usr/local/lib -L/ 
usr/lib -L/sw/lib -L/usr/local/lib -L/usr/lib -L/sw/lib -lpng -lz - 
lstdc++ -lm -lfreetype -lz -lstdc++ -lm -o build/lib.darwin-8.5.2- 
i386-2.4/matplotlib/backends/_tkagg.so -framework Tcl -framework Tk
/usr/bin/ld: can't locate file for: -lpng
collect2: ld returned 1 exit status
/usr/bin/ld: can't locate file for: -lpng
collect2: ld returned 1 exit status
error: Command "c++ -bundle -undefined dynamic_lookup build/ 
temp.darwin-8.5.2-i386-2.4/src/_tkagg.o build/temp.darwin-8.5.2- 
i386-2.4/CXX/cxx_extensions.o build/temp.darwin-8.5.2-i386-2.4/CXX/ 
cxxsupport.o build/temp.darwin-8.5.2-i386-2.4/CXX/ 
IndirectPythonInterface.o build/temp.darwin-8.5.2-i386-2.4/CXX/ 
cxxextensions.o -L/usr/local/lib -L/usr/lib -L/sw/lib -L/usr/local/ 
lib -L/usr/lib -L/sw/lib -lpng -lz -lstdc++ -lm -lfreetype -lz -lstdc+ 
+ -lm -o build/lib.darwin-8.5.2-i386-2.4/matplotlib/backends/ 
_tkagg.so -framework Tcl -framework Tk" failed with exit status 1
hostname:~/src/matplotlib-0.87 mennis$
From: Jason C. L. <jas...@gm...> - 2006年03月10日 16:44:30
Hi,
Alright, that was rude. And for that I appologise. Perhaps I should have
counted to 10 before posting. I'm sure lots of hard work went into the port=
.
However, that was pretty frustrating.
Jason.
On 3/9/06, Jason C. Leach <jas...@gm...> wrote:
>
> Compiling matplotlib from Ports in FreeBSD is a Joke! Who ever made this
> get t together. I don't want every X based lib on the planet just so I ca=
n
> make some images (on a cli based system).
>
> J.
>
> --
> ........................................
> .... Jason C. Leach
> .... PGP Key: 0x62DDDF75
> .... Keyserver: gpg.mit.edu
>
--
........................................
.... Jason C. Leach
.... PGP Key: 0x62DDDF75
.... Keyserver: gpg.mit.edu
From: David H. <dav...@gm...> - 2006年03月10日 16:11:30
Add the argument colors('b', 'r') when calling pie, i.e.
>>> pie(fracs, colors =3D ('b', 'r'), explode=3Dexplode, labels=3Dlabels,
autopct=3D'%1.1f%%', shadow=3DTrue)
Look at the docstring help(pie) for more info on the key arguments.
David
2006年3月10日, Ryan Suarez <ry...@ze...>:
> Greetings,
>
> Sorry, I am new to matplotlib(0.86.1). I modifed the sample pie chart
> below to report disk quota usage. But how do I specify colors? (blue
> for free, and red for used)
>
> -----------
> from pylab import *
> figure(1, figsize=3D(4,4))
> ax =3D axes([0.1, 0.1,0.8,0.8])
> labels =3D 'Free', 'Used'
> fracs =3D [15,85]
> figure(1)
> pie(fracs, labels=3Dlabels)
> figure(2, figsize=3D(8,8))
> explode=3D(0.05,0)
> pie(fracs, explode=3Dexplode, labels=3Dlabels, autopct=3D'%1.1f%%', shado=
w=3DTrue)
> savefig('pie_demo')
> show()
>
> regards,
> Ryan
>
>
> -------------------------------------------------------
> 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: John H. <jdh...@ac...> - 2006年03月10日 16:06:41
>>>>> "Peter" == Peter Wang <pw...@en...> writes:
 Peter> py...@va... wrote ..
 >> When I try to import pylab, I get the error message shown
 >> below. I also tried the earlier version of matplotlib
 >> (matplotlib-0.87.win32-py2.3) with the same result. File
 >> "C:\Python23\Lib\site-packages\matplotlib\font_manager.py",
 >> line 456, in createFontDict warnings.warn("Cannot handle
 >> unicode filenames %s"%fpath)
 Peter> So, it looks like what's happening is that Matplotlib is
 Peter> trying to cache your font files, and as it does so, it's
 Peter> encountered a font whose filename has unicode characters in
 Peter> it. This is not a problem in and of itself, and it just
The irony is that warning comes in unicode exception handling :-)
Try replacing that block of code with 
 try:
 font = ft2font.FT2Font(str(fpath))
 except RuntimeError:
 warnings.warn("Could not open font file %s"%fpath)
 continue
 except UnicodeError:
 warnings.warn("Cannot handle unicode filenames")
 print >> sys.stderr, 'Bad file is', fpath
 continue
JDH
From: <lao...@gm...> - 2006年03月10日 16:03:19
Just testing ---- I seem to be unable to post to this list. Thanks!
On 3/10/06, Ryan Suarez <ry...@ze...> wrote:
> Greetings,
>
> Sorry, I am new to matplotlib(0.86.1). I modifed the sample pie chart
> below to report disk quota usage. But how do I specify colors? (blue
> for free, and red for used)
>
> -----------
> from pylab import *
> figure(1, figsize=3D(4,4))
> ax =3D axes([0.1, 0.1,0.8,0.8])
> labels =3D 'Free', 'Used'
> fracs =3D [15,85]
> figure(1)
> pie(fracs, labels=3Dlabels)
> figure(2, figsize=3D(8,8))
> explode=3D(0.05,0)
> pie(fracs, explode=3Dexplode, labels=3Dlabels, autopct=3D'%1.1f%%', shado=
w=3DTrue)
> savefig('pie_demo')
> show()
>
> regards,
> Ryan
>
>
> -------------------------------------------------------
> 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: Ryan S. <ry...@ze...> - 2006年03月10日 15:14:02
Greetings,
Sorry, I am new to matplotlib(0.86.1). I modifed the sample pie chart 
below to report disk quota usage. But how do I specify colors? (blue 
for free, and red for used)
-----------
from pylab import * 
figure(1, figsize=(4,4))
ax = axes([0.1, 0.1,0.8,0.8])
labels = 'Free', 'Used'
fracs = [15,85]
figure(1)
pie(fracs, labels=labels)
figure(2, figsize=(8,8))
explode=(0.05,0)
pie(fracs, explode=explode, labels=labels, autopct='%1.1f%%', shadow=True)
savefig('pie_demo')
show()
regards,
Ryan
From: Peter W. <pw...@en...> - 2006年03月10日 14:52:58
py...@va... wrote ..
> When I try to import pylab, I get the error
> message shown below. I also tried the earlier version of matplotlib (matplotlib-0.87.win32-py2.3)
> with the same result. 
> File "C:\Python23\Lib\site-packages\matplotlib\font_manager.py", line
> 456, in createFontDict
> warnings.warn("Cannot handle unicode filenames %s"%fpath)
So, it looks like what's happening is that Matplotlib is trying to cache your font files, and as it does so, it's encountered a font whose filename has unicode characters in it. This is not a problem in and of itself, and it just tries to warn you; however, the warning module is choking on the warning string that's being passed into it. So, until this gets fixed for real, a quick hack would be to edit your font_manager.py and remove the reference to the file name:
warnings.warn("Cannot handle unicode filenames")
Not as useful an error message as before, but it'll get you up and running. :)
-Peter
From: <py...@va...> - 2006年03月10日 08:14:21
<html>=0D
=0D
<P>Hi</P>=0D
<P>I am new to python and&nbsp;want to check out&nbsp;matplotlib on Windows=
 XP. I followed the recommondation in the installation instruction and inst=
alled the latest version of the Enthought edition of python (enthon-0.9.2).=
 Then I installed matplotlib-0.87.1.win32-py2.3. When I try to import pylab=
, I get the error message shown below. I also tried the earlier version of =
matplotlib (matplotlib-0.87.win32-py2.3) with the same result.</P>=0D
<P>I will be very greatful for any hints on how to get matplotlib working o=
n Windows XP. I don't mind redoing the complete installation in another way=
 if it solves the problem.</P>=0D
<P>Best regards</P>=0D
<P>Erik Meyer</P>=0D
<P>--------------------------------</P>=0D
<P>Python 2.3.5 - Enthought Edition 0.9.2 (#62, May 11 2005, 20:02:58) [MSC=
 v.1200 32 bit (Intel)] on win32<BR>
Type "help", "copyright", "credits" or "license" for more information.<BR>
&gt;&gt;&gt; from pylab import *<BR>
Traceback (most recent call last):<BR>
&nbsp; File "&lt;stdin&gt;", line 1, in ?<BR>
&nbsp; File "C:\Python23\Lib\site-packages\pylab.py", line 1, in ?<BR>
&nbsp;&nbsp;&nbsp; from matplotlib.pylab import *<BR>
&nbsp; File "C:\Python23\Lib\site-packages\matplotlib\pylab.py", line 200, =
in ?<BR>
&nbsp;&nbsp;&nbsp; from axes import Axes, PolarAxes<BR>
&nbsp; File "C:\Python23\Lib\site-packages\matplotlib\axes.py", line 15, in=
 ?<BR>
&nbsp;&nbsp;&nbsp; from axis import XAxis, YAxis<BR>
&nbsp; File "C:\Python23\Lib\site-packages\matplotlib\axis.py", line 25, in=
 ?<BR>
&nbsp;&nbsp;&nbsp; from font_manager import FontProperties<BR>
&nbsp; File "C:\Python23\Lib\site-packages\matplotlib\font_manager.py", lin=
e 990, in ?<BR>
&nbsp;&nbsp;&nbsp; fontManager =3D FontManager()<BR>
&nbsp; File "C:\Python23\Lib\site-packages\matplotlib\font_manager.py", lin=
e 835, in __init__<BR>
&nbsp;&nbsp;&nbsp; rebuild()<BR>
&nbsp; File "C:\Python23\Lib\site-packages\matplotlib\font_manager.py", lin=
e 828, in rebuild<BR>
&nbsp;&nbsp;&nbsp; self.ttfdict =3D createFontDict(self.ttffiles)<BR>
&nbsp; File "C:\Python23\Lib\site-packages\matplotlib\font_manager.py", lin=
e 456, in createFontDict<BR>
&nbsp;&nbsp;&nbsp; warnings.warn("Cannot handle unicode filenames %s"%fpath=
)<BR>
&nbsp; File "C:\Python23\lib\warnings.py", line 57, in warn<BR>
&nbsp;&nbsp;&nbsp; warn_explicit(message, category, filename, lineno, modul=
e, registry)<BR>
&nbsp; File "C:\Python23\lib\warnings.py", line 116, in warn_explicit<BR>
&nbsp;&nbsp;&nbsp; showwarning(message, category, filename, lineno)<BR>
&nbsp; File "C:\Python23\lib\warnings.py", line 123, in showwarning<BR>
&nbsp;&nbsp;&nbsp; file.write(formatwarning(message, category, filename, li=
neno))<BR>
&nbsp; File "C:\Python23\lib\warnings.py", line 129, in formatwarning<BR>
&nbsp;&nbsp;&nbsp; s =3D&nbsp; "%s:%s: %s: %s\n" % (filename, lineno, categ=
ory.__name__, message)<BR>
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe6' in positio=
n 47: ordinal not in range(128)<BR>
&gt;&gt;&gt; <BR>
</P>=0D
</html><BR>=
From: John H. <jdh...@ac...> - 2006年03月10日 03:55:20
>>>>> "Jason" == Jason C Leach <jas...@gm...> writes:
 Jason> Compiling matplotlib from Ports in FreeBSD is a Joke! Who
 Jason> ever made this get t together. I don't want every X based
 Jason> lib on the planet just so I can make some images (on a cli
 Jason> based system).
Hey Jason,
Sorry for your troubles. Packaging matplotlib is kind of hard,
because there are lots of optional packages, including almost every
popular GUI toolkit and TeX. If you are unhappy with the choices your
packager has made you should consider compiling from source. It
shouldn't be too hard on a BSD system.
JDH
From: David C. <dav...@gm...> - 2006年03月10日 03:49:03
T24gMy85LzA2LCBKYXNvbiBDLiBMZWFjaCA8amFzb24ubGVhY2hAZ21haWwuY29tPiB3cm90ZToK
PiBDb21waWxpbmcgbWF0cGxvdGxpYiBmcm9tIFBvcnRzIGluIEZyZWVCU0QgaXMgYSBKb2tlISAg
V2hvIGV2ZXIgbWFkZSB0aGlzCj4gZ2V0IHQgdG9nZXRoZXIuIEkgZG9uJ3Qgd2FudCBldmVyeSBY
IGJhc2VkIGxpYiBvbiB0aGUgcGxhbmV0IGp1c3Qgc28gSSBjYW4KPiBtYWtlIHNvbWUgaW1hZ2Vz
IChvbiBhIGNsaSBiYXNlZCBzeXN0ZW0pLgoKV2VsbCwgdGhhdCB3YXMgcnVkZS4gSXQncyBmcmVl
IGFuZCBvcGVuIHNvdXJjZS4gR28gaGFjayBpdCB5b3Vyc2VsZi4KT3IgZmluZCBhbm90aGVyIHBh
Y2thZ2U6IHRoZXJlIGFyZSBzZXZlcmFsIHdpdGggYSBjb21tYW5kLWxpbmUKaW50ZXJmYWNlLCB0
aG91Z2ggSSBoYXZlIGZvdW5kIG5vbmUgd2hpY2ggcHJvZHVjZXMgcGxvdHMgdGhhdApsb29rIGFz
IG5pY2UgYXMgbWF0cGxvdGxpYidzLgoKQmVzaWRlcywgZm9yIHB1YmxpY2F0aW9uIHF1YWxpdHkg
cGxvdHMsIHlvdSBuZWVkIHRvIGJlIGFibGUgdG8gc2VlCndoYXQgeW91J3JlIHBsb3R0aW5nIGJl
Zm9yZSBjb21taXR0aW5nIGl0IHRvIHBhcGVyLiBJbiBmYWN0LCBwbG90cyBvZgpkYXRhIGZvciBh
bnkgcmVhc29uIHNob3VsZCBiZSB2aWV3YWJsZSBvbi1zY3JlZW4uIFNpbmNlIGl0IGlzIGdvb2QK
bm90IHRvIGtlZXAgcmUtaW52ZW50aW5nIHRoZSB3aGVlbCwgdXNlIG9mIHByZS1leGlzdGluZyBs
aWJyYXJpZXMKZm9yIGRpc3BsYXkgaXMgYSByYXRpb25hbCBjaG9pY2UuCgotLURhdmUK
From: Jason C. L. <jas...@gm...> - 2006年03月10日 03:35:44
Compiling matplotlib from Ports in FreeBSD is a Joke! Who ever made this
get t together. I don't want every X based lib on the planet just so I can
make some images (on a cli based system).
J.
--
........................................
.... Jason C. Leach
.... PGP Key: 0x62DDDF75
.... Keyserver: gpg.mit.edu
From: Sturla M. <stu...@me...> - 2006年03月10日 00:33:05
Here is what happens:
>>> import numpy
>>> numpy.__version__
'0.9.5'
>>> numpy.ndarray([1])/0.0
array([ 1.#INF0000e+000])
Well, it is numpy 0.9.5, but the problem could be numpy 0.9.5 on Windows.
Thanks.
Sturla Molden
>>>>>> "Sturla" == Sturla Molden <stu...@me...> writes:
> Sturla>
> "C:\Python24\Lib\site-packages\matplotlib\numerix\_nc_imports.py",
> Sturla> line 25, in ? inf = infty = infinity = Infinity =
> Sturla> (array([1])/0.0)[0] TypeError: unsupported operand type(s)
> Sturla> for /: 'numpy.ndarray' and 'float'
> >>>>
>
> Are you sure about your numpy version? I am not seeing this on linux
>
> In [1]: import numpy
>
> In [4]: numpy.__version__
> Out[4]: '0.9.5'
>
> In [3]: numpy.ndarray([1])/0.0
> Out[3]: array([ -inf])
>
> Could you run these commands on your system?
>
> JDH
>
From: Sturla M. <stu...@me...> - 2006年03月10日 00:32:40
Here is what happens:
>>> import numpy
>>> numpy.__version__
'0.9.5'
>>> numpy.ndarray([1])/0.0
array([ 1.#INF0000e+000])
Well, it is numpy 0.9.5, but the problem could be numpy 0.9.5 on Windows.
Thanks.
Sturla Molden
>>>>>> "Sturla" == Sturla Molden <stu...@me...> writes:
> Sturla>
> "C:\Python24\Lib\site-packages\matplotlib\numerix\_nc_imports.py",
> Sturla> line 25, in ? inf = infty = infinity = Infinity =
> Sturla> (array([1])/0.0)[0] TypeError: unsupported operand type(s)
> Sturla> for /: 'numpy.ndarray' and 'float'
> >>>>
>
> Are you sure about your numpy version? I am not seeing this on linux
>
> In [1]: import numpy
>
> In [4]: numpy.__version__
> Out[4]: '0.9.5'
>
> In [3]: numpy.ndarray([1])/0.0
> Out[3]: array([ -inf])
>
> Could you run these commands on your system?
>
> JDH
>

Showing 22 results of 22

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /