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

Showing 14 results of 14

From: Jeff W. <js...@fa...> - 2005年04月25日 21:26:01
Mike Elson wrote:
>Hello Jeff,
>
>I tried loading the file etopo20.pickle by itself but got the same error:
>
>import cPickle
>a = cPickle.load(open('etopo20.pickle','rb'))
>
>Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/lib/python2.3/site-packages/numarray/generic.py", line
>159, in Cla\ssicUnpickler
> self.__setstate__(state)
> File "/usr/lib/python2.3/site-packages/numarray/numarraycore.py",
>line 463, i\n __setstate__
> self._type = state["_type"]
>AttributeError: ("'str' object has no attribute 'name'", <function
>ClassicUnpic\kler at 0xb71e48b4>, (<class
>'numarray.numarraycore.NumArray'>, {'_type': 'Floa\t32', '_itemsize':
>4, '_shape': (1081,), '_bytestride': 4, '_byteoffset': 0, '_\version':
>'1.1', '_byteorder': 'big', '_data': <memory at 082ee9a0 with
>size:4324円 held by object 082ee980 aliasing object 00000000>,
>'_strides': (4,)}))
>
>Looking at etopo20.pickle itself, the 4th line reads
>'cnumarray.generic' - I'm guessing that means it is stored using
>numarray.
>Do I need a specific version of python or numarray to read it? I have
>both Numeric (23.1) and numarray installed already.
>
>Mike.
>
> 
>
Mike: Not that I know of. I'm puzzled by this one. You said in your 
first message that you are using numarray 0.8 - I think that might be 
too old. It's up to 1.3.1 now, and I'm sure I created that pickle with 
at least 1.1.
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/CDC R/CDC1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
From: Mike E. <mik...@gm...> - 2005年04月25日 21:16:25
Hello Jeff,
I tried loading the file etopo20.pickle by itself but got the same error:
import cPickle
a =3D cPickle.load(open('etopo20.pickle','rb'))
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
 File "/usr/lib/python2.3/site-packages/numarray/generic.py", line
159, in Cla\ssicUnpickler
 self.__setstate__(state)
 File "/usr/lib/python2.3/site-packages/numarray/numarraycore.py",
line 463, i\n __setstate__
 self._type =3D state["_type"]
AttributeError: ("'str' object has no attribute 'name'", <function
ClassicUnpic\kler at 0xb71e48b4>, (<class
'numarray.numarraycore.NumArray'>, {'_type': 'Floa\t32', '_itemsize':
4, '_shape': (1081,), '_bytestride': 4, '_byteoffset': 0, '_\version':
'1.1', '_byteorder': 'big', '_data': <memory at 082ee9a0 with
size:4324円 held by object 082ee980 aliasing object 00000000>,
'_strides': (4,)}))
Looking at etopo20.pickle itself, the 4th line reads
'cnumarray.generic' - I'm guessing that means it is stored using
numarray.
Do I need a specific version of python or numarray to read it? I have
both Numeric (23.1) and numarray installed already.
Mike.
On 4/25/05, Jeff Whitaker <js...@fa...> wrote:
> Mike Elson wrote:
>=20
> >I'm having trouble running some of the examples that come with basemap
> >- any th\at use the file etopo20.pickle fail with an error similar to:
> >
> >Traceback (most recent call last):
> > File "test.py", line 12, in ?
> > topodict =3D cPickle.load(open('etopo20.pickle','rb'))
> > File "/usr/lib/python2.3/site-packages/numarray/generic.py", line
> >159, in Cla\ssicUnpickler
> > self.__setstate__(state)
> > File "/usr/lib/python2.3/site-packages/numarray/numarraycore.py",
> >line 463, i\n __setstate__
> > self._type =3D state["_type"]
> >AttributeError: ("'str' object has no attribute 'name'", <function
> >ClassicUnpic\kler at 0xb7b08e9c>, (<class
> >'numarray.numarraycore.NumArray'>, {'_type': 'Floa\t32', '_itemsize':
> >4, '_shape': (1081,), '_bytestride': 4, '_byteoffset': 0, '_\version':
> >'1.1', '_byteorder': 'big', '_data': <memory at 082f8798 with
> >size:4324円 held by object 082f8778 aliasing object 00000000>,
> >'_strides': (4,)}))
> >
> >Can anyone tell me how to fix this?
> >I'm using python 2.3.4, matplotlib 0.80, basemap 0.3.2, proj 4.4.8 and
> >have the Python libraries numeric 23.1 and numarray 0.8 installed.
> >
> >Thanks in advance,
> >Mike.
> >
> >
> >
> Mike: My guess is I saved the data as a pickle Numeric (not numarray) ob=
ject. You can either install Numeric, or I can re-pickle it for you with n=
umarray.
>=20
> -Jeff
>=20
> ---
> Jeffrey S. Whitaker Phone : (303)497-6313
> NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
> 325 Broadway Web : http://www.cdc.noaa.gov/~jsw
> Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124
>=20
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Tim L. <ti...@cs...> - 2005年04月25日 15:42:12
On 2005年4月25日, Jeff Whitaker <js...@fa...> wrote...
> Thanks for the explanation Tim. Sounds like it should work out of the 
> box, provided that the map projection you need is supported. If not, 
> I'll try adding it. Obviously, you don't need to plot coastlines and 
> political boundaries, but is there something you would like to plot in 
> their stead? 
There are a standard set of locations for scalp electrodes when measuring
EEG data, so if we could represent them as small, circular countries,
that'd be kinda cool. Also a couple of ovals/triangles to represent
ears/eyes/nose would be useful.
I'm a little busy for the coming week but I'll come back to this little
project once things settle down and I'll get back to you on how well it
works.
Thanks in advance for all the work you've done in getting the library to
the stage it is.
Tim
> 
> -Jeff
> 
> 
> -- 
> Jeffrey S. Whitaker Phone : (303)497-6313
> Meteorologist FAX : (303)497-6449
> NOAA/OAR/CDC R/CDC1 Email : Jef...@no...
> 325 Broadway Office : Skaggs Research Cntr 1D-124
> Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
> 
`-
From: Grig G. <gr...@gh...> - 2005年04月25日 15:10:10
sparkplot is a short Python module I wrote that uses matplotlib to
create sparklines. For details see:
http://agiletesting.blogspot.com/2005/04/sparkplot-creating-sparklines-with.html
Kudos to everybody working on matplotlib, of course first of all to
John Hunter. I was really impressed with the functionality and
versatility of matplotlib. I'll keep trying my hand at it while
enhancing sparkplot.
Grig
From: Jeff W. <js...@fa...> - 2005年04月25日 14:45:08
Tim Leslie wrote:
>On 2005年4月24日, Jeff Whitaker <js...@fa...> wrote...
>
> 
>
>>Tim Leslie wrote:
>>
>> 
>>
>>>Hi all,
>>>
>>>I use matplotlib for looking at EEG (brainwave) data and I was looking for
>>>a good way to do headmap plots of various things. I was wondering if
>>>anyone has done this before. The basemap toolkit looks like it's done a
>>>lot of the hard work, so I was planning on hacking on that to get it to do
>>>what I need but I figured I should check here first to see that I'm not
>>>reinventing a wheel that someone might have lying around. John, I know
>>>you've done EEG stuff, any pointers?
>>>
>>>Cheers,
>>>
>>>Tim Leslie
>>>
>>>
>>> 
>>>
>>What's a headma?
>> 
>>
>
>A headmap is visualisation where you plot certain values such as signal
>power over the scalp. When you do an EEG recording you're often interested
>in how certain values vary with location across the head and a headmap is
>a way to view this.
>
>If you think of the head as a perfect sphere, then I'd like to plot values
>at certain locations in the same way that using the basemap toolkit you
>can plot values of say, temperature, at different locations on the earth.
>
>Tim
>
> 
>
>
Thanks for the explanation Tim. Sounds like it should work out of the 
box, provided that the map projection you need is supported. If not, 
I'll try adding it. Obviously, you don't need to plot coastlines and 
political boundaries, but is there something you would like to plot in 
their stead? 
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/CDC R/CDC1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
From: Pujo A. <aj...@gm...> - 2005年04月25日 13:05:50
I use python org. I already uninstalled the matplotlib from windows
add/remove program and verify that no matplotlib directory in
site-packages.
After that I reinstall the matplotlib again I use version 0.80
I can't import the matplotlib even in the minimum condition.
For example I go to python shell and type import pylab, this raise the
same error.
I create your myscript.py and run it, but before it finished it shows
the same message in windows forms like I send before, and I have to
stop it.
This processed is stop because I have to cancel the program (due to
error message I sent).
D:\>python myscript.py --verbose-helpful
matplotlib data path c:\python24\share\matplotlib
loaded rc file c:\python24\share\matplotlib\.matplotlibrc
matplotlib version 0.80
verbose.level helpful
interactive is False
platform is win32
numerix Numeric 23.8
font search path ['c:\\python24\\share\\matplotlib']
my os is Windows XP Home Edition.
Betriebssystemname Microsoft Windows XP Home Edition
Version 5.1.2600 Service Pack 2 Build 2600
Betriebssystemhersteller Microsoft Corporation
Systemname MARLIN
Systemhersteller MEDIONPC
Systemmodell MS-7091
Systemtyp X86-based PC
Prozessor x86 Family 15 Model 3 Stepping 4 GenuineIntel ~3391 Mhz
Prozessor x86 Family 15 Model 3 Stepping 4 GenuineIntel ~3391 Mhz
BIOS-Version/-Datum Phoenix Technologies, LTD 6.00 PG, 12.10.2004
SMBIOS-Version 2.3
Windows-Verzeichnis C:\WINDOWS
Systemverzeichnis C:\WINDOWS\system32
Startger=E4t \Device\HarddiskVolume1
Gebietsschema =D6sterreich
Hardwareabstraktionsebene Version =3D "5.1.2600.2180
(xpsp_sp2_rtm.040803-2158)"
Benutzername MARLIN\Pujo
Zeitzone Westeurop=E4ische Normalzeit
Gesamter realer Speicher 511,48 MB
Verf=FCgbarer realer Speicher 201,06 MB
Gesamter virtueller Speicher 2,00 GB
Verf=FCgbarer virtueller Speicher 1,96 GB
Gr=F6=DFe der Auslagerungsdatei 1,22 GB
Sorry it is in German, I live in Austria
Sincerely Yours,
Pujo Aji
On 4/23/05, John Hunter <jd...@gm...> wrote:
> On 4/22/05, Pujo Aji <aj...@gm...> wrote:
>=20
> > Error message:
> > Microsoft Visual C++ Runtime Library
> > Assertion failed!
> > Program:c\python24\python.exe
> > File:CXX/cxx_extentions.cxx
> > Line:1031
> >
> > Expression: ob_refcnt =3D=3D 0
> > For information on how your program can cause an assertion
> > failure, see the Visual C++ documentation on asserts
> >
> > First I install in new computer python 2.4.1
> > then the error comes out.
> >
> > So I tried to reinstall with python 2.4
> > The problem still comes.
>=20
> Hmm, that's a strange one. We've seen this once before
>=20
> http://sourceforge.net/mailarchive/message.php?msg_id=3D8789882
>=20
> and I can't remember what the solution was (the thread doesn't mention
> it) but it was resolved. I've CCd Gregory on this email to see if he
> can remember, since he once saw the same problem .
>=20
> Are you using the python from python.org? Does it help if you remove
> site-packages/matplotlib and then reinstall? Please create this
> simple test script
>=20
> import pylab
> pylab.plot([1,2,3])
> pylab.show()
>=20
> and run it with
>=20
> > c:\python24\python myscript.py --verbose-helpful
>=20
> and paste in all the output and errors in your response after doing a
> clean reinstall, as well as your OS information ....
>=20
> JDH
>
From: Pujo A. <aj...@gm...> - 2005年04月25日 13:04:49
On 4/23/05, John Hunter <jd...@gm...> wrote:
> On 4/22/05, Pujo Aji <aj...@gm...> wrote:
>=20
> > Error message:
> > Microsoft Visual C++ Runtime Library
> > Assertion failed!
> > Program:c\python24\python.exe
> > File:CXX/cxx_extentions.cxx
> > Line:1031
> >
> > Expression: ob_refcnt =3D=3D 0
> > For information on how your program can cause an assertion
> > failure, see the Visual C++ documentation on asserts
> >
> > First I install in new computer python 2.4.1
> > then the error comes out.
> >
> > So I tried to reinstall with python 2.4
> > The problem still comes.
>=20
> Hmm, that's a strange one. We've seen this once before
>=20
> http://sourceforge.net/mailarchive/message.php?msg_id=3D8789882
>=20
> and I can't remember what the solution was (the thread doesn't mention
> it) but it was resolved. I've CCd Gregory on this email to see if he
> can remember, since he once saw the same problem .
>=20
> Are you using the python from python.org? Does it help if you remove
> site-packages/matplotlib and then reinstall? Please create this
> simple test script
>=20
> import pylab
> pylab.plot([1,2,3])
> pylab.show()
>=20
> and run it with
>=20
> > c:\python24\python myscript.py --verbose-helpful
>=20
> and paste in all the output and errors in your response after doing a
> clean reinstall, as well as your OS information ....
>=20
> JDH
>
From: Jeff W. <js...@fa...> - 2005年04月25日 12:05:27
Travis Brady wrote:
>Thanks, John.
>That worked, but Matplotlib is now spitting out the error below and I
>can't even find the rc file in the location it lists:
>
>/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/__init__.py:642:
>UserWarning: Bad val "error" on line #200
> "verbose.level : error # one of silent, error, helpful,
> debug, debug-annoying"
> in file
> "/System/Library/Frameworks/Python.framework/Versions/2.3/share/matplotlib/.matplotlibrc"
> Illegal verbose string "error". Legal values are ('silent',
> 'helpful', 'debug', 'debug-annoying')
> warnings.warn('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s'
> % (val, cnt, line, fname, msg))
>/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/__init__.py:630:
>UserWarning: Bad key "verbose.erro" on line 202 in
>/System/Library/Frameworks/Python.framework/Versions/2.3/share/matplotlib/.matplotlibrc
> warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname))
>Bus error
>
> 
>
Travis: The matplotlib package in fink (http://fink.sf.net) is up to 
date, and includes basemap-0.3.2. First, you'll need to install the 
developer tools. After running the fink installer, enable the unstable 
tree by editing /sw/etc/fink.conf (add 'unstable/main' and 
'unstable/crypto' to the 'Trees:' line). Then run "fink selfupdate", 
and when that is done "fink install matplotlib-py24". Go get several 
cups of coffee as fink downloads and builds a whole bunch of depedencies 
(including python 2.4.1). The fink installed python distribution will 
live entirely independently of your apple system python. I keep the 
matplotlib package up to date, so all that will be needed to get the 
latest version will be to run "fink update matplotlib-py24" 
occasionally. The disadvantage of the fink route is that you'll have to 
use X11 to run matplotlib with the gtk-agg backend, since fink python is 
a unix build and doesn't support using the native wx or tk toolkits. 
Right now I actually think of this an advantage, since as you've seen 
these toolkits are a bit buggy (the gtk-agg backend is better tested, 
since I believe it is the default under linux and windows).
-Jeff
P.S. If you decide to go this route, be sure to read section 2.3 of the 
fink user's guide 
(http://fink.sourceforge.net/doc/users-guide/install.php?phpLang=en#setup).
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
325 Broadway Web : http://www.cdc.noaa.gov/~jsw
Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124
From: Travis B. <td...@fa...> - 2005年04月25日 02:43:24
Thanks, John.
That worked, but Matplotlib is now spitting out the error below and I
can't even find the rc file in the location it lists:
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/__init__.py:642:
UserWarning: Bad val "error" on line #200
 "verbose.level : error # one of silent, error, helpful,
 debug, debug-annoying"
 in file
 "/System/Library/Frameworks/Python.framework/Versions/2.3/share/matplotlib/.matplotlibrc"
 Illegal verbose string "error". Legal values are ('silent',
 'helpful', 'debug', 'debug-annoying')
 warnings.warn('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s'
 % (val, cnt, line, fname, msg))
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/matplotlib/__init__.py:630:
UserWarning: Bad key "verbose.erro" on line 202 in
/System/Library/Frameworks/Python.framework/Versions/2.3/share/matplotlib/.matplotlibrc
 warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname))
Bus error
Travis
On 2005年4月24日 20:15:11 -0500, "John Hunter" <jd...@gm...>
said:
> On 4/24/05, Travis Brady <td...@fa...> wrote:
> > Excellent, thanks for the prompt response, Jeff.
> > 
> > I've just tried the ireland.py example and am at a complete loss as to
> > what to do about the following error.
> > ...snip ....
> > File "/platlib/matplotlib/lines.py", line 543, in _draw_dashed
> > TypeError: CXX: type error.
> > 
> > Any thoughts?
> 
> 
> You're going to need the latest matplotlib to run the latest basemap. 
> Robert Kern has a build in mac enthon -- check out
> http://download.enthought.com/MacEnthon (this also includes a slightly
> older basemap 0.1.2). You can either install the entire macenthon
> package or selected subpacakges -- check out the readme on the site.
-- 
 Travis Brady
 td...@fa...
From: Tim L. <ti...@cs...> - 2005年04月25日 02:15:14
On 2005年4月24日, Jeff Whitaker <js...@fa...> wrote...
> Tim Leslie wrote:
> 
> >Hi all,
> >
> >I use matplotlib for looking at EEG (brainwave) data and I was looking for
> >a good way to do headmap plots of various things. I was wondering if
> >anyone has done this before. The basemap toolkit looks like it's done a
> >lot of the hard work, so I was planning on hacking on that to get it to do
> >what I need but I figured I should check here first to see that I'm not
> >reinventing a wheel that someone might have lying around. John, I know
> >you've done EEG stuff, any pointers?
> >
> >Cheers,
> >
> >Tim Leslie
> > 
> >
> What's a headma?
A headmap is visualisation where you plot certain values such as signal
power over the scalp. When you do an EEG recording you're often interested
in how certain values vary with location across the head and a headmap is
a way to view this.
If you think of the head as a perfect sphere, then I'd like to plot values
at certain locations in the same way that using the basemap toolkit you
can plot values of say, temperature, at different locations on the earth.
Tim
> 
> -Jeff
> 
> -- 
> Jeffrey S. Whitaker Phone : (303)497-6313
> NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
> 325 Broadway Web : http://www.cdc.noaa.gov/~jsw
> Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124
> 
`-
From: Travis B. <td...@fa...> - 2005年04月25日 00:48:42
Excellent, thanks for the prompt response, Jeff.
I've just tried the ireland.py example and am at a complete loss as to
what to do about the following error.
Traceback (most recent call last):
 File "ireland.py", line 21, in ?
 show()
 File "/platlib/matplotlib/backends/backend_wx.py", line 1156, in show
 File "/platlib/matplotlib/backends/backend_wxagg.py", line 52, in draw
 File "/platlib/matplotlib/backends/backend_agg.py", line 319, in draw
 File "/platlib/matplotlib/figure.py", line 338, in draw
 File "/platlib/matplotlib/axes.py", line 1296, in draw
 File "/platlib/matplotlib/lines.py", line 283, in draw
 File "/platlib/matplotlib/lines.py", line 543, in _draw_dashed
TypeError: CXX: type error.
Any thoughts?
Travis
On 2005年4月24日 18:30:21 -0600, "Jeff Whitaker" <js...@fa...>
said:
> Travis Brady wrote:
> 
> >Has anyone successfully installed and run matplotlib from the .dmg here:
> > http://sda.iu.edu/projects.html ?
> >I'm able to install just fine and I can import pylab and create a plot,
> >but using "pylab.show()" crashes Python and returns "Segmentation Fault"
> >and nothing else.
> >
> >
> >Also has anyone successfully installed BaseMap on OS X?
> >I've attempted to install the latest BaseMap package (I believe it's
> >0.3.2) and receive the following error:
> >error: could not create
> >'/System/Library/Frameworks/Python.framework/Versions/2.3/share/basemap-py23':
> >Permission denied
> >
> >I'm running the stock Python 2.3 and Matplotlib 0.72.1 from the link
> >above.
> >
> >Thanks,
> >
> >Travis Brady
> > 
> >
> Travis: Regarding the basemap install - you need admin privileges on 
> your mac to install using "python setup.py install", so either run it as 
> sudo, or if you don't have admin access try "python setup.py install 
> --home=~" (this will install it in your home directory). If you do the 
> latter, you'll have to add ~/lib/python to your PYTHONPATH.
> 
> 
> -Jeff
> 
> -- 
> Jeffrey S. Whitaker Phone : (303)497-6313
> NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
> 325 Broadway Web : http://www.cdc.noaa.gov/~jsw
> Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124
> 
-- 
 Travis Brady
 td...@fa...
From: Jeff W. <js...@fa...> - 2005年04月25日 00:30:37
Travis Brady wrote:
>Has anyone successfully installed and run matplotlib from the .dmg here:
> http://sda.iu.edu/projects.html ?
>I'm able to install just fine and I can import pylab and create a plot,
>but using "pylab.show()" crashes Python and returns "Segmentation Fault"
>and nothing else.
>
>
>Also has anyone successfully installed BaseMap on OS X?
>I've attempted to install the latest BaseMap package (I believe it's
>0.3.2) and receive the following error:
>error: could not create
>'/System/Library/Frameworks/Python.framework/Versions/2.3/share/basemap-py23':
>Permission denied
>
>I'm running the stock Python 2.3 and Matplotlib 0.72.1 from the link
>above.
>
>Thanks,
>
>Travis Brady
> 
>
Travis: Regarding the basemap install - you need admin privileges on 
your mac to install using "python setup.py install", so either run it as 
sudo, or if you don't have admin access try "python setup.py install 
--home=~" (this will install it in your home directory). If you do the 
latter, you'll have to add ~/lib/python to your PYTHONPATH.
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
325 Broadway Web : http://www.cdc.noaa.gov/~jsw
Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124
From: Jeff W. <js...@fa...> - 2005年04月25日 00:26:29
Mike Elson wrote:
>I'm having trouble running some of the examples that come with basemap
>- any th\at use the file etopo20.pickle fail with an error similar to:
>
>Traceback (most recent call last):
> File "test.py", line 12, in ?
> topodict = cPickle.load(open('etopo20.pickle','rb'))
> File "/usr/lib/python2.3/site-packages/numarray/generic.py", line
>159, in Cla\ssicUnpickler
> self.__setstate__(state)
> File "/usr/lib/python2.3/site-packages/numarray/numarraycore.py",
>line 463, i\n __setstate__
> self._type = state["_type"]
>AttributeError: ("'str' object has no attribute 'name'", <function
>ClassicUnpic\kler at 0xb7b08e9c>, (<class
>'numarray.numarraycore.NumArray'>, {'_type': 'Floa\t32', '_itemsize':
>4, '_shape': (1081,), '_bytestride': 4, '_byteoffset': 0, '_\version':
>'1.1', '_byteorder': 'big', '_data': <memory at 082f8798 with
>size:4324円 held by object 082f8778 aliasing object 00000000>,
>'_strides': (4,)}))
>
>Can anyone tell me how to fix this?
>I'm using python 2.3.4, matplotlib 0.80, basemap 0.3.2, proj 4.4.8 and
>have the Python libraries numeric 23.1 and numarray 0.8 installed.
>
>Thanks in advance,
>Mike.
>
> 
>
Mike: My guess is I saved the data as a pickle Numeric (not numarray) object. You can either install Numeric, or I can re-pickle it for you with numarray.
-Jeff
---
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
325 Broadway Web : http://www.cdc.noaa.gov/~jsw
Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124
From: Travis B. <td...@fa...> - 2005年04月25日 00:25:11
Has anyone successfully installed and run matplotlib from the .dmg here:
 http://sda.iu.edu/projects.html ?
I'm able to install just fine and I can import pylab and create a plot,
but using "pylab.show()" crashes Python and returns "Segmentation Fault"
and nothing else.
Also has anyone successfully installed BaseMap on OS X?
I've attempted to install the latest BaseMap package (I believe it's
0.3.2) and receive the following error:
error: could not create
'/System/Library/Frameworks/Python.framework/Versions/2.3/share/basemap-py23':
Permission denied
I'm running the stock Python 2.3 and Matplotlib 0.72.1 from the link
above.
Thanks,
Travis Brady
-- 
 Travis Brady
 td...@fa...

Showing 14 results of 14

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 によって変換されたページ (->オリジナル) /