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





Showing 6 results of 6

From: John H. <jdh...@ac...> - 2004年05月06日 15:45:48
>>>>> "Alex" == Alex Rada <ale...@ya...> writes:
 >> src/_gtkagg.cpp:32: error: `GDK_DRAWABLE' undeclared (first use
Hi Alex, could you provide your platform information, python version
and pygtk version. The latter is obtained by
 > pkg-config --modversion pygtk-2.0
The gtk backend requires pygtk 1.99.16 or later, which *may* be the
src of your troubles.
You might also include the gcc commands that are generated in building
gtkagg since I might get some information from the include and library
flags.
John Hunter
From: Alex R. <ale...@ya...> - 2004年05月06日 15:05:45
Hi, I have a problem trying to install matplotlib 0.53.1. The error is 
the following:
--------------------------------------------------------------------------------------------------------------
 > src/_gtkagg.cpp: In function `PyObject* _agg_to_gtk_drawable(PyObject*,
 PyObject*)':
 > src/_gtkagg.cpp:32: error: `GDK_DRAWABLE' undeclared (first use this 
function)
 > src/_gtkagg.cpp:32: error: (Each undeclared identifier is reported 
only once
 for each function it appears in.)
 > error: command 'gcc' failed with exit status 1
--------------------------------------------------------------------------------------------------------------
maybe it's due to some library incompatibilties, I hope you can help me.
Thanks in advance, Alex
From: John H. <jdh...@ac...> - 2004年05月06日 12:23:08
>>>>> "Andrew" == Andrew Straw <str...@as...> writes:
 Andrew> The same trick should (hopefully) get 0.53.1 to work: get
 Andrew> rid of the old matplotlib in site-packages before
 Andrew> installing a new one. Probably some files from 0.52 are
 Andrew> screwing up 0.53.1.
 Andrew> (This is a limitation of Python's distutils -- upgrades
 Andrew> should really wipe the package out of site-packages rather
 Andrew> than adding files.)
I did some testing by successively installing 0.53.1 and then my CVS
tree comparing a file in site-packages/matplotlib that I knew had
changed in the two versions. New files do indeed replace old files,
but it appears only if their time stamps are newer. 
So if I install the 0.53.1 tree to a clean site-packages and then the
CVS tree, the file (mathtext.py) is updated (both dirs have clean
build directories). If I then go back the 0.53.1 and flush the build
dir and reinstall, the *.so files are installed to site-packages
(these are freshly built and so have new time stamps), but the *.py
files are not, presumably because they are older than the ones in
site-packages.
I don't know why you encountered trouble Jim because you were
upgrading in the right direction (screwy system clock, something about
how and when you unarchived the different versions?) but this
definitely explains why your attempt to downgrade failed.
But Andrew is definitely right: when in doubt I do
 > sudo rm -rf /usr/local/lib/python2.3/site-packages/matplotlib
 > sudo rm -rf build
before installing.
I checked distutils and there does not seem to be any flag you can set
to guarantee a clean install.
JDH
From: Jim B. <jb...@se...> - 2004年05月06日 06:05:22
On Wed, 5 May 2004, Andrew Straw wrote:
> Jim Benson wrote:
> 
> > <>I finally tried to upgrade from matplotlib-0.52 to 0.53.1.
> 
> > <>ok..so i went into floyd:/usr/local/lib/python2.3/site-packages>
> > and moved the matplotlib dir to matplotlib.bak and then tried
> > a re-install of 0.52...my app again words..whew! (is there an
> > easier way to uninstall?)
> 
> The same trick should (hopefully) get 0.53.1 to work: get rid of the old 
> matplotlib in site-packages before installing a new one. Probably some 
> files from 0.52 are screwing up 0.53.1.
> 
> (This is a limitation of Python's distutils -- upgrades should really 
> wipe the package out of site-packages rather than adding files.)
> 
> Cheers!
> Andrew
> 
...and also a limitation of my late night thinking.
Your suggestion appears to have worked like a charm.
I'll definitely use your advice for all future upgrades of
any python packages.
Thanks!!
Jim
From: Andrew S. <str...@as...> - 2004年05月06日 05:43:09
Jim Benson wrote:
> <>I finally tried to upgrade from matplotlib-0.52 to 0.53.1.
> <>ok..so i went into floyd:/usr/local/lib/python2.3/site-packages>
> and moved the matplotlib dir to matplotlib.bak and then tried
> a re-install of 0.52...my app again words..whew! (is there an
> easier way to uninstall?)
The same trick should (hopefully) get 0.53.1 to work: get rid of the old 
matplotlib in site-packages before installing a new one. Probably some 
files from 0.52 are screwing up 0.53.1.
(This is a limitation of Python's distutils -- upgrades should really 
wipe the package out of site-packages rather than adding files.)
Cheers!
Andrew
From: Jim B. <jb...@se...> - 2004年05月06日 04:35:12
Hi,
 I finally tried to upgrade from matplotlib-0.52 to 0.53.1.
When i try to run my app that works fine on 0.52,
it crashes when i try to make plot (the matplotlib part).
floyd:/home/jbenson/python>python nrpapp.py
Traceback (most recent call last):
 File 
"/usr/local/lib/python2.3/site-packages/matplotlib/backends/backend_wx.py", 
line 990, in _onPaint
 self.draw()
 File 
"/usr/local/lib/python2.3/site-packages/matplotlib/backends/backend_wx.py", 
line 875, in draw
 self.figure.draw(renderer)
 File "/usr/local/lib/python2.3/site-packages/matplotlib/artist.py", line 
88, in draw
 self._draw(renderer, *args, **kwargs)
 File "/usr/local/lib/python2.3/site-packages/matplotlib/figure.py", line 
89, in _draw
 for a in self.axes: a.draw(renderer)
 File "/usr/local/lib/python2.3/site-packages/matplotlib/artist.py", line 
88, in draw
 self._draw(renderer, *args, **kwargs)
 File "/usr/local/lib/python2.3/site-packages/matplotlib/axes.py", line 
561, in _draw
 self.xaxis.draw(renderer)
 File "/usr/local/lib/python2.3/site-packages/matplotlib/artist.py", line 
88, in draw
 self._draw(renderer, *args, **kwargs)
 File "/usr/local/lib/python2.3/site-packages/matplotlib/axis.py", line 
443, in _draw
 tick.draw(renderer)
 File "/usr/local/lib/python2.3/site-packages/matplotlib/artist.py", line 
88, in draw
 self._draw(renderer, *args, **kwargs)
 File "/usr/local/lib/python2.3/site-packages/matplotlib/axis.py", line 
119, in _draw
 if self.label1On: self.label1.draw(renderer)
 File "/usr/local/lib/python2.3/site-packages/matplotlib/artist.py", line 
88, in draw
 self._draw(renderer, *args, **kwargs)
 File "/usr/local/lib/python2.3/site-packages/matplotlib/text.py", line 
74, in _draw
 renderer.draw_text(gc, x, y, self)
 File 
"/usr/local/lib/python2.3/site-packages/matplotlib/backends/backend_wx.py", 
line 499, in draw_text
 font = self.get_wx_font(t)
 File 
"/usr/local/lib/python2.3/site-packages/matplotlib/backends/backend_wx.py", 
line 600, in get_wx_font
 self.fontweights[t.get_fontweight()], # Weight
KeyError: 'medium'
 
floyd:/home/jbenson/python>
This may not be enough info for you to help me,
but on the other hand you might immediately see something
that i have wrong. ...err is there the equivalent of 
a 'make clean" in the "python setup.py install"
(yup i'm a newbie to some aspects of python)
...i just tried a re-install of 0.52..and
while it did stuff, clearly 0.53 is still being used. 
It's my home machine...so not a real big deal. 
I also tried:
[root@floyd matplotlib-0.52]# python setup.py clean
running clean 
[root@floyd matplotlib-0.52]# python setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
changing mode of /usr/local/bin/postinstall.py to 755
running install_data
[root@floyd matplotlib-0.52]#
and
[root@floyd matplotlib-0.53.1]# python setup.py clean
running clean
removing 'build/temp.linux-i686-2.3' (and everything under it)
[root@floyd matplotlib-0.53.1]#
and then:
[root@floyd matplotlib-0.52]# python setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
changing mode of /usr/local/bin/postinstall.py to 755
running install_data
[root@floyd matplotlib-0.52]#
I also tried moving the 0.52 dist to a back, untarring and then 
redoing the "python setup.py install"
...but still i'm stuck with my non-working upgrade. 
ok..so i went into floyd:/usr/local/lib/python2.3/site-packages>
and moved the matplotlib dir to matplotlib.bak and then tried
a re-install of 0.52...my app again words..whew! (is there an
easier way to uninstall?)
Thanks for any comments (including RT_Fine_M section xx),
Jim

Showing 6 results of 6

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