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



Showing 18 results of 18

On 06/07/2010 01:15 PM, Robert Sudwarts wrote:
> Hi,
>
> Hoping someone can help with this... I'm trying to install in a virtual
> environment created with "--no-site-packages"
> I've followed all instructions re cleaning the existing .matplotlib
> cache/directory and deleted .egg files etc
>
> (virtualenv) ... $ easy_install matplotlib -- gives me an error:
> "command 'gcc' failed with exit status 1"
>
> The existing components (note: all from within the virtualenv):
>
> $ python --version --> 2.6.4
>
> $ python -c 'import numpy; print numpy.__version__' --> 1.4.1
>
> $ gcc --version --> 4.4.1
>
> $ uname -a --> Linux HP-desktop 2.6.31-22-generic-pae #60-Ubuntu
> SMP Thu May 27 01:40:15 UTC 2010 i686 GNU/Linux
>
> (I'm running this on Ubuntu Karmic Koala -- please note that installing
> from the Synaptic Package Manager gives me a working version which runs
> correctly and as expected, using ipython -pylab etc)
>
> This may be a question of downloading a version other than v0.99.3 but
> in that case I'd not be sure which one to use(!)
> I'd be really grateful for any assistance you can give....
It looks like the problem is that you are missing the -dev packages for 
various libraries. In your output below, wherever you see something 
about a missing header, it means you need to install a corresponding 
-dev package.
Eric
>
>
>
> (and finally the output/error from "easy_install matplotlib")
>
> Searching for matplotlib
> Reading http://pypi.python.org/simple/matplotlib/
> Reading http://matplotlib.sourceforge.net
> Reading
> http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
> <http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474>
> Reading
> https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194
> <https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194>
> Reading http://sourceforge.net/project/showfiles.php?group_id=80706
> Reading
> https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/
> Reading
> https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
> <https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474>
> Best match: matplotlib 0.99.3
> Downloading
> http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/matplotlib-0.99.3.tar.gz/download
> Processing download
> Running matplotlib-0.99.3/setup.py -q bdist_egg --dist-dir
> /tmp/easy_install-7FYGk8/matplotlib-0.99.3/egg-dist-tmp-7gnrbR
> ============================================================================
> BUILDING MATPLOTLIB
> matplotlib: 0.99.3
> python: 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC
> 4.4.1]
> platform: linux2
>
> REQUIRED DEPENDENCIES
> numpy: 1.4.1
> freetype2: found, but unknown version (no pkg-config)
> * WARNING: Could not find 'freetype2' headers
> in any
> * of '/usr/local/include', '/usr/include', '.',
> * '/usr/local/include/freetype2',
> * '/usr/include/freetype2', './freetype2'.
>
> OPTIONAL BACKEND DEPENDENCIES
> libpng: found, but unknown version (no pkg-config)
> * Could not find 'libpng' headers in any of
> * '/usr/local/include', '/usr/include', '.'
> Tkinter: no
> * Using default library and include directories for
> * Tcl and Tk because a Tk window failed to open.
> * You may need to define DISPLAY for Tk to work so
> * that setup can determine where your libraries are
> * located. Tkinter present, but header files
> are not
> * found. You may need to install development
> * packages.
> 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: no
> Qt: no
> Qt4: no
> Cairo: no
>
> OPTIONAL DATE/TIMEZONE DEPENDENCIES
> datetime: present, version unknown
> dateutil: matplotlib will provide
> pytz: matplotlib will provide
> adding pytz
>
> OPTIONAL USETEX DEPENDENCIES
> dvipng: no
> ghostscript: 8.70
> latex: no
> pdftops: 0.12.0
>
> [Edit setup.cfg to suppress the above messages]
> ============================================================================
> pymods ['pylab']
> packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections',
> 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid',
> 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab',
> 'matplotlib.numerix.ma <http://matplotlib.numerix.ma>',
> 'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array',
> 'matplotlib.numerix.fft', 'matplotlib.delaunay', 'pytz', 'dateutil',
> 'dateutil/zoneinfo']
> warning: no files found matching 'MANIFEST'
> warning: no files found matching 'lib/mpl_toolkits'
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
> Ada/C/ObjC but not for C++
> In file included from /usr/include/c++/4.4/ext/hash_map:59,
> from ./CXX/Extensions.hxx:68,
> from src/ft2font.h:4,
> from src/ft2font.cpp:1:
> /usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning
> This file includes at least one deprecated or antiquated header which
> may be removed without further notice at a future date. Please use a
> non-deprecated interface with equivalent functionality instead. For a
> listing of replacement headers and interfaces, consult the file
> backward_warning.h. To disable this warning use -Wno-deprecated.
> In file included from src/ft2font.cpp:1:
> src/ft2font.h:13:22: error: ft2build.h: No such file or directory
> src/ft2font.h:14:10: error: #include expects "FILENAME" or <FILENAME>
> src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME>
> src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME>
> src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME>
> src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME>
> In file included from src/ft2font.cpp:1:
> src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared
> src/ft2font.h:31: error: ‘FT_Int’ has not been declared
> src/ft2font.h:31: error: ‘FT_Int’ has not been declared
> src/ft2font.h:77: error: ISO C++ forbids declaration of ‘FT_Face’ with
> no type
> src/ft2font.h:77: error: expected ‘,’ or ‘...’ before ‘&’ token
> src/ft2font.h:83: error: ISO C++ forbids declaration of ‘FT_Face’ with
> no type
> src/ft2font.h:83: error: expected ‘,’ or ‘...’ before ‘&’ token
> src/ft2font.h:122: error: ‘FT_Face’ does not name a type
> src/ft2font.h:123: error: ‘FT_Matrix’ does not name a type
> src/ft2font.h:124: error: ‘FT_Vector’ does not name a type
> src/ft2font.h:125: error: ‘FT_Error’ does not name a type
> src/ft2font.h:126: error: ‘FT_Glyph’ was not declared in this scope
> src/ft2font.h:126: error: template argument 1 is invalid
> src/ft2font.h:126: error: template argument 2 is invalid
> src/ft2font.h:127: error: ‘FT_Vector’ was not declared in this scope
> src/ft2font.h:127: error: template argument 1 is invalid
> src/ft2font.h:127: error: template argument 2 is invalid
> src/ft2font.h:133: error: ‘FT_BBox’ does not name a type
> src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type
> src/ft2font.cpp:96: error: variable or field ‘draw_bitmap’ declared void
> src/ft2font.cpp:96: error: ‘FT_Bitmap’ was not declared in this scope
> src/ft2font.cpp:96: error: ‘bitmap’ was not declared in this scope
> src/ft2font.cpp:97: error: ‘FT_Int’ was not declared in this scope
> src/ft2font.cpp:98: error: ‘FT_Int’ was not declared in this scope
> /home/robertsudwarts/virtualenvs/sqa/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:1187:
> warning: ‘int _import_array()’ defined but not used
> error: Setup script exited with error: command 'gcc' failed with exit
> status 1
>
>
>
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Hi,
Hoping someone can help with this... I'm trying to install in a virtual
environment created with "--no-site-packages"
I've followed all instructions re cleaning the existing .matplotlib
cache/directory and deleted .egg files etc
(virtualenv) ... $ easy_install matplotlib -- gives me an error: "command
'gcc' failed with exit status 1"
The existing components (note: all from within the virtualenv):
$ python --version --> 2.6.4
$ python -c 'import numpy; print numpy.__version__' --> 1.4.1
$ gcc --version --> 4.4.1
$ uname -a --> Linux HP-desktop 2.6.31-22-generic-pae #60-Ubuntu SMP
Thu May 27 01:40:15 UTC 2010 i686 GNU/Linux
(I'm running this on Ubuntu Karmic Koala -- please note that installing from
the Synaptic Package Manager gives me a working version which runs correctly
and as expected, using ipython -pylab etc)
This may be a question of downloading a version other than v0.99.3 but in
that case I'd not be sure which one to use(!)
I'd be really grateful for any assistance you can give....
(and finally the output/error from "easy_install matplotlib")
Searching for matplotlib
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Reading
http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading
https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194
Reading http://sourceforge.net/project/showfiles.php?group_id=80706
Reading
https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/
Reading
https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Best match: matplotlib 0.99.3
Downloading
http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/matplotlib-0.99.3.tar.gz/download
Processing download
Running matplotlib-0.99.3/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-7FYGk8/matplotlib-0.99.3/egg-dist-tmp-7gnrbR
============================================================================
BUILDING MATPLOTLIB
 matplotlib: 0.99.3
 python: 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC
 4.4.1]
 platform: linux2
REQUIRED DEPENDENCIES
 numpy: 1.4.1
 freetype2: found, but unknown version (no pkg-config)
 * WARNING: Could not find 'freetype2' headers in any
 * of '/usr/local/include', '/usr/include', '.',
 * '/usr/local/include/freetype2',
 * '/usr/include/freetype2', './freetype2'.
OPTIONAL BACKEND DEPENDENCIES
 libpng: found, but unknown version (no pkg-config)
 * Could not find 'libpng' headers in any of
 * '/usr/local/include', '/usr/include', '.'
 Tkinter: no
 * Using default library and include directories for
 * Tcl and Tk because a Tk window failed to open.
 * You may need to define DISPLAY for Tk to work so
 * that setup can determine where your libraries are
 * located. Tkinter present, but header files are not
 * found. You may need to install development
 * packages.
 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: no
 Qt: no
 Qt4: no
 Cairo: no
OPTIONAL DATE/TIMEZONE DEPENDENCIES
 datetime: present, version unknown
 dateutil: matplotlib will provide
 pytz: matplotlib will provide
adding pytz
OPTIONAL USETEX DEPENDENCIES
 dvipng: no
 ghostscript: 8.70
 latex: no
 pdftops: 0.12.0
[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends', 'matplotlib.projections',
'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid',
'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab', '
matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo']
warning: no files found matching 'MANIFEST'
warning: no files found matching 'lib/mpl_toolkits'
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
In file included from /usr/include/c++/4.4/ext/hash_map:59,
 from ./CXX/Extensions.hxx:68,
 from src/ft2font.h:4,
 from src/ft2font.cpp:1:
/usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning
This file includes at least one deprecated or antiquated header which may be
removed without further notice at a future date. Please use a non-deprecated
interface with equivalent functionality instead. For a listing of
replacement headers and interfaces, consult the file backward_warning.h. To
disable this warning use -Wno-deprecated.
In file included from src/ft2font.cpp:1:
src/ft2font.h:13:22: error: ft2build.h: No such file or directory
src/ft2font.h:14:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME>
In file included from src/ft2font.cpp:1:
src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:31: error: ‘FT_Int’ has not been declared
src/ft2font.h:31: error: ‘FT_Int’ has not been declared
src/ft2font.h:77: error: ISO C++ forbids declaration of ‘FT_Face’ with no
type
src/ft2font.h:77: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:83: error: ISO C++ forbids declaration of ‘FT_Face’ with no
type
src/ft2font.h:83: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:122: error: ‘FT_Face’ does not name a type
src/ft2font.h:123: error: ‘FT_Matrix’ does not name a type
src/ft2font.h:124: error: ‘FT_Vector’ does not name a type
src/ft2font.h:125: error: ‘FT_Error’ does not name a type
src/ft2font.h:126: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.h:126: error: template argument 1 is invalid
src/ft2font.h:126: error: template argument 2 is invalid
src/ft2font.h:127: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.h:127: error: template argument 1 is invalid
src/ft2font.h:127: error: template argument 2 is invalid
src/ft2font.h:133: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type
src/ft2font.cpp:96: error: variable or field ‘draw_bitmap’ declared void
src/ft2font.cpp:96: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:96: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:97: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:98: error: ‘FT_Int’ was not declared in this scope
/home/robertsudwarts/virtualenvs/sqa/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:1187:
warning: ‘int _import_array()’ defined but not used
error: Setup script exited with error: command 'gcc' failed with exit status
1
From: Dharhas P. <Dha...@tw...> - 2010年06月07日 21:11:17
Ben,
The matplotlib on the other working machine is using python 2.6.4. On this machine I am using python 2.6.5.
The default python on both machines in python 2.4 but I set up python 2.6 as an alternate install in /opt/python26.
- dharhas
>>> Benjamin Root <ben...@ou...> 6/7/2010 3:56 PM >>>
Dharhas,
Is it possible to find out which version of python was installed for your
other RHEL5 machine? I don't know if that makes a difference or not, but
RHEL5 by default uses Python 2.4.
Ben Root
On Mon, Jun 7, 2010 at 1:48 PM, Dharhas Pothina <
Dha...@tw...> wrote:
> Hi,
>
> I have Python 2.6 installed on RHEL5 (and Numpy 1.4.1) and am trying to
> install matplotlib. Installation occurs without any error messages although
> I do get a bunch of warnings at the end.
>
> /usr/bin/ld: skipping incompatible /usr/lib/libtk8.4.so when searching for
> -ltk8.4
> /usr/bin/ld: skipping incompatible /usr/lib/libtcl8.4.so when searching
> for -ltcl8.4
> /usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching
> for -lfreetype
> /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
> /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
> /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
> /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
> /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
> /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
> /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching
> for -lpthread
> /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for
> -lpthread
> /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
> /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
>
> When I try using matplotlib I get the following error:
>
> Python 2.6.5 (r265:79063, May 18 2010, 11:20:57)
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import matplotlib.pyplot as plt
> >>> plt.plot([1,0],[2,3])
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File
> "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/pyplot.py",
> line 2141, in plot
> ret = ax.plot(*args, **kwargs)
> File
> "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py",
> line 3437, in plot
> self.autoscale_view(scalex=scalex, scaley=scaley)
> File
> "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py",
> line 1624, in autoscale_view
> XL = self.xaxis.get_major_locator().view_limits(x0, x1)
> File
> "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/ticker.py",
> line 1014, in view_limits
> return np.take(self.bin_boundaries(dmin, dmax), [0,-1])
> File
> "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/numpy/core/fromnumeric.py",
> line 103, in take
> return take(indices, axis, out, mode)
> IndexError: index out of range for array
>
>
> Any help would be appreciated. I've tried several versions of matplotlib. I
> also was able to get it installed on a different RHEL5 machine a while back
> and am not sure what is different about this machine.
>
> thanks
>
> - dharhas
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo 
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li... 
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users 
>
From: Benjamin R. <ben...@ou...> - 2010年06月07日 20:56:33
Dharhas,
Is it possible to find out which version of python was installed for your
other RHEL5 machine? I don't know if that makes a difference or not, but
RHEL5 by default uses Python 2.4.
Ben Root
On Mon, Jun 7, 2010 at 1:48 PM, Dharhas Pothina <
Dha...@tw...> wrote:
> Hi,
>
> I have Python 2.6 installed on RHEL5 (and Numpy 1.4.1) and am trying to
> install matplotlib. Installation occurs without any error messages although
> I do get a bunch of warnings at the end.
>
> /usr/bin/ld: skipping incompatible /usr/lib/libtk8.4.so when searching for
> -ltk8.4
> /usr/bin/ld: skipping incompatible /usr/lib/libtcl8.4.so when searching
> for -ltcl8.4
> /usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching
> for -lfreetype
> /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
> /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
> /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
> /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
> /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
> /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
> /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching
> for -lpthread
> /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for
> -lpthread
> /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
> /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
>
> When I try using matplotlib I get the following error:
>
> Python 2.6.5 (r265:79063, May 18 2010, 11:20:57)
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import matplotlib.pyplot as plt
> >>> plt.plot([1,0],[2,3])
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File
> "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/pyplot.py",
> line 2141, in plot
> ret = ax.plot(*args, **kwargs)
> File
> "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py",
> line 3437, in plot
> self.autoscale_view(scalex=scalex, scaley=scaley)
> File
> "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py",
> line 1624, in autoscale_view
> XL = self.xaxis.get_major_locator().view_limits(x0, x1)
> File
> "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/ticker.py",
> line 1014, in view_limits
> return np.take(self.bin_boundaries(dmin, dmax), [0,-1])
> File
> "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/numpy/core/fromnumeric.py",
> line 103, in take
> return take(indices, axis, out, mode)
> IndexError: index out of range for array
>
>
> Any help would be appreciated. I've tried several versions of matplotlib. I
> also was able to get it installed on a different RHEL5 machine a while back
> and am not sure what is different about this machine.
>
> thanks
>
> - dharhas
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Eric F. <ef...@ha...> - 2010年06月07日 20:46:52
On 06/07/2010 10:41 AM, James Evans wrote:
> I am having a problem when using masked arrays. The attached scripts
> are identical except for the data. One will actually produce a plot,
> whereas the other will not. I cannot figure out what I am doing wrong,
> such that the second script fails. Am I doing something wrong with this,
> or is this an actual bug?
Maybe a bug that was fixed in mpl, or in a newer version of numpy than 
you are using. Using both mpl and numpy from svn, both scripts work for me.
Eric
>
> Thanks,
>
> --James Evans
>
From: Dharhas P. <Dha...@tw...> - 2010年06月07日 18:49:23
Hi,
I have Python 2.6 installed on RHEL5 (and Numpy 1.4.1) and am trying to install matplotlib. Installation occurs without any error messages although I do get a bunch of warnings at the end. 
/usr/bin/ld: skipping incompatible /usr/lib/libtk8.4.so when searching for -ltk8.4
/usr/bin/ld: skipping incompatible /usr/lib/libtcl8.4.so when searching for -ltcl8.4
/usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching for -lfreetype
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
When I try using matplotlib I get the following error:
Python 2.6.5 (r265:79063, May 18 2010, 11:20:57) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
>>> plt.plot([1,0],[2,3])
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/pyplot.py", line 2141, in plot
 ret = ax.plot(*args, **kwargs)
 File "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py", line 3437, in plot
 self.autoscale_view(scalex=scalex, scaley=scaley)
 File "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/axes.py", line 1624, in autoscale_view
 XL = self.xaxis.get_major_locator().view_limits(x0, x1)
 File "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/matplotlib/ticker.py", line 1014, in view_limits
 return np.take(self.bin_boundaries(dmin, dmax), [0,-1])
 File "/home/swdata/.virtualenvs/web/lib/python2.6/site-packages/numpy/core/fromnumeric.py", line 103, in take
 return take(indices, axis, out, mode)
IndexError: index out of range for array
Any help would be appreciated. I've tried several versions of matplotlib. I also was able to get it installed on a different RHEL5 machine a while back and am not sure what is different about this machine.
thanks
- dharhas
From: Nie, J. <jn...@bn...> - 2010年06月07日 16:58:33
John,
Thank you very much for a prompt reply.
I am using Ipython with QT4 backend for the examples. I can have animated plot (dragable vertices) for the path_editor.py, but not for the line_editor.py. My python installation is pythonxy on windows 7. Could you please tell me your installation? 
Yes, I do mean the matplotlib.widgets.Cursor, and I have version of 0.99.1. My version does not have the two lines as you mentioned. 
--
Jinsuo
-----Original Message-----
From: John Hunter [mailto:jd...@gm...] 
Sent: Monday, June 07, 2010 12:19 PM
To: Nie, Jinsuo
Cc: mat...@li...
Subject: Re: [Matplotlib-users] Animated Line2D
On Mon, Jun 7, 2010 at 10:14 AM, Nie, Jinsuo <jn...@bn...> wrote:
> I modified the path_editor.py example in order to make a line editor, as
> attached. However, the line is not animated even the line has been
> correctly updated. It seems canvas.blit is not functioning correctly in
> motion_notify_callback.  Canvas.blit works in draw_callback because the
> initial line can be plotted.
Unfortunately, I cannot understand your problem. I have tried running
your attached example and it seems to run fine on my system (I can
drag the vertices and the line drawing is updated). Can you describe
the problem you are seeing? Could this be a version problem -- what
version of mpl are you running?
 johnh@udesktop191:Downloads> python -c 'import matplotlib; print
matplotlib.__version__'
 1.0.svn
> I read the Curse implement which uses lines. This implementation uses
> visible but not animated property to achieve the animation. Any reason for
> that?
Do you mean matplotlib.widgets.Cursor? It does use the animated
property -- at least in the svn version. See the line in the __init__
function:
 if useblit:
 lineprops['animated'] = True
JDH
From: John H. <jd...@gm...> - 2010年06月07日 16:19:20
On Mon, Jun 7, 2010 at 10:14 AM, Nie, Jinsuo <jn...@bn...> wrote:
> I modified the path_editor.py example in order to make a line editor, as
> attached. However, the line is not animated even the line has been
> correctly updated. It seems canvas.blit is not functioning correctly in
> motion_notify_callback.  Canvas.blit works in draw_callback because the
> initial line can be plotted.
Unfortunately, I cannot understand your problem. I have tried running
your attached example and it seems to run fine on my system (I can
drag the vertices and the line drawing is updated). Can you describe
the problem you are seeing? Could this be a version problem -- what
version of mpl are you running?
 johnh@udesktop191:Downloads> python -c 'import matplotlib; print
matplotlib.__version__'
 1.0.svn
> I read the Curse implement which uses lines. This implementation uses
> visible but not animated property to achieve the animation. Any reason for
> that?
Do you mean matplotlib.widgets.Cursor? It does use the animated
property -- at least in the svn version. See the line in the __init__
function:
 if useblit:
 lineprops['animated'] = True
JDH
From: Tony S Yu <ts...@gm...> - 2010年06月07日 16:17:44
On Jun 7, 2010, at 11:16 AM, Ian Stokes-Rees wrote:
> I'm generating a plot of NxN squares, where the size of the square
> corresponds to the correlation between the (i,j) point. Every (i,i)
> point equals 1.0. I'm using "scatter" to do this, but the sizing
> appears to be in "points" from the graphic, rather than "units" of the
> two axes. Is there some way to account for this, or is there some
> better way to generate this image?
> 
> # result = n x n matrix of correlations between points (i,j)
> a = arange(n).repeat(n).reshape(n,n)
> b = a.transpose()
> scatter(a.flatten(), b.flatten(), s=result, marker='s')
> 
> You can see an example here, where N=300: (note, this is a 2.5 MB image):
> 
> http://abitibi.sbgrid.org/se/data/shared/biodb/scop-class/a/39/1/5/.meta/tmscore2.png
> 
> Thanks,
> 
> Ian
What you're doing sounds very similar to a Hinton diagrom (or at least the resulting image looks similar). There's an example of plotting such a diagram in the scipy cookbook: 
http://www.scipy.org/Cookbook/Matplotlib/HintonDiagrams
The implementation is pretty slow because it loops through the data and draws each square one by one. I wrote a faster alternative a while back (see attached). It uses a custom PolyCollection, which uses data units for the areas instead of figure units. Also, I just noticed there's another implementation of Hinton diagrams in the matplotlib examples folder (examples/api/hinton_demo.py). For some reason, this example doesn't appear on the website, otherwise I'd link to it.
I believe the difference between your plot and a hinton diagram is that you have a different metric for calculating the size of the squares.
-Tony
From: Michael D. <md...@st...> - 2010年06月07日 16:05:02
Since this data is essentially a 2 dimensional image, you may want to 
experiment with imshow.
Mike
On 06/07/2010 11:16 AM, Ian Stokes-Rees wrote:
> I'm generating a plot of NxN squares, where the size of the square
> corresponds to the correlation between the (i,j) point. Every (i,i)
> point equals 1.0. I'm using "scatter" to do this, but the sizing
> appears to be in "points" from the graphic, rather than "units" of the
> two axes. Is there some way to account for this, or is there some
> better way to generate this image?
>
> # result = n x n matrix of correlations between points (i,j)
> a = arange(n).repeat(n).reshape(n,n)
> b = a.transpose()
> scatter(a.flatten(), b.flatten(), s=result, marker='s')
>
> You can see an example here, where N=300: (note, this is a 2.5 MB image):
>
> http://abitibi.sbgrid.org/se/data/shared/biodb/scop-class/a/39/1/5/.meta/tmscore2.png
>
> Thanks,
>
> Ian
>
> 
-- 
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA
From: Ian Stokes-R. <ijs...@hk...> - 2010年06月07日 15:16:48
I'm generating a plot of NxN squares, where the size of the square
corresponds to the correlation between the (i,j) point. Every (i,i)
point equals 1.0. I'm using "scatter" to do this, but the sizing
appears to be in "points" from the graphic, rather than "units" of the
two axes. Is there some way to account for this, or is there some
better way to generate this image?
# result = n x n matrix of correlations between points (i,j)
a = arange(n).repeat(n).reshape(n,n)
b = a.transpose()
scatter(a.flatten(), b.flatten(), s=result, marker='s')
You can see an example here, where N=300: (note, this is a 2.5 MB image):
http://abitibi.sbgrid.org/se/data/shared/biodb/scop-class/a/39/1/5/.meta/tmscore2.png
Thanks,
Ian
-- 
Ian Stokes-Rees, PhD W: http://hkl.hms.harvard.edu
ijs...@hk... T: +1 617 432-5608 x75
NEBioGrid, Harvard Medical School C: +1 617 331-5993
From: Benjamin R. <ben...@ou...> - 2010年06月07日 14:04:34
Todd,
I think you are missing a "plt.show()" at the end of your code. matplotlib,
by default on most systems, does not show a plot until you tell it to using
plt.show() command.
See if that works,
Ben Root
On Mon, Jun 7, 2010 at 7:57 AM, Todd V Rovito <rov...@gm...> wrote:
> Greetings,
> I just installed Python 2.6 (python.org), Numpy 1.4.1, and Matplotlib
> 0.99.1.2 all on Mac OS X 10.6 in an attempt to learn about scientific
> programming in python. Go easy on me since I am a begginer. The Python and
> Numpy seem to be working correctly. I can get matplotlib to make plots but
> I can't get it to show images. I tried the stinkbug example in
> the Matplotlib users guide documentation with no success. Errors are _NOT_
> generated but neither are any results on the screen. The imread command
> produces a float32 matrix that contains all 1. values so I tried creating my
> own uint8 matrix with a diagnoal line. My code is below. Thanks for any
> help you can provide.
>
>
>
> # -*- coding: utf-8 -*-
> from numpy import *
> import matplotlib.pyplot as plt
> import matplotlib.image as mpimg
>
> print "Numpy version: " + __version__
> a = array([10,20,30,40])
> print "result of a"
> print a
>
> b = arange(4)
> print "result of b"
> print b
>
> c = linspace(-pi, pi, 30)
> print "result of c"
> print c
>
> # this plot code works
> print "plot c"
> plt.plot(c)
> plt.ylabel("-pi to + pi")
> plt.xlabel("value of c")
> plt.show()
>
> # this image processing code does not work
> print "doing image processing stuff"
> # img=mpimg.imread("/Users/rovitotv/Desktop/stinkbug.png") # this does not
> work
> img = zeros((10, 10), dtype=uint8)
> for i in range(10):
> img[i,i] = 255;
>
> plt.imshow(img)
> print "data type of img:"
> print img.dtype
> print "size of img:" + str(img.size)
> print img
>
>
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Jae-Joon L. <lee...@gm...> - 2010年06月07日 13:39:44
I think this is a known bug (unfortunately, the bug fix does not seem
to be reflected in the maintenance version), but without a full
traceback, I'm not 100% sure.
You may use the svn version which have fixed this bug, or you may try
the workaround described in the link below (check the
clabel_monkeypatching.py).
http://sourceforge.net/tracker/index.php?func=detail&aid=2922835&group_id=80706&atid=560720
-JJ
2010年6月4日 Thøger Emil Juul Thorsen <th...@fy...>:
> Hello list;
>
> I'm new to python/matplotlib, migrating from IDL. I need to do some
> interactive point selection with mouse, and the pyplot.ginput() routine
> seemed to be just the right thing here. I do however need to be able to
> make a not previously specified number of clicks, so ginput(n=0) is a
> requirement.
>
> However, when I press enter on my laptop (with no middle mouse button),
> I get the error message:
>
> TypeError: stop_event_loop() takes exactly 1 argument (2 given)
>
> I've tried two different pieces of example code from the matplotlib SF
> page.
> I'm using Matplotlib 0.99.1 on Ubuntu 10.04.
> Is there any solution or workaround? If I cannot have this
> functionality, it is, unfortunately, kind of a deal breaker for at least
> some of my work, and I'd like to keep it purely Python.
>
> Best regards;
>
> Emil
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Todd V R. <rov...@gm...> - 2010年06月07日 13:04:09
Greetings,
 I just installed Python 2.6 (python.org), Numpy 1.4.1, and Matplotlib
0.99.1.2 all on Mac OS X 10.6 in an attempt to learn about scientific
programming in python. Go easy on me since I am a begginer. The Python and
Numpy seem to be working correctly. I can get matplotlib to make plots but
I can't get it to show images. I tried the stinkbug example in
the Matplotlib users guide documentation with no success. Errors are _NOT_
generated but neither are any results on the screen. The imread command
produces a float32 matrix that contains all 1. values so I tried creating my
own uint8 matrix with a diagnoal line. My code is below. Thanks for any
help you can provide.
# -*- coding: utf-8 -*-
from numpy import *
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
print "Numpy version: " + __version__
a = array([10,20,30,40])
print "result of a"
print a
b = arange(4)
print "result of b"
print b
c = linspace(-pi, pi, 30)
print "result of c"
print c
# this plot code works
print "plot c"
plt.plot(c)
plt.ylabel("-pi to + pi")
plt.xlabel("value of c")
plt.show()
# this image processing code does not work
print "doing image processing stuff"
# img=mpimg.imread("/Users/rovitotv/Desktop/stinkbug.png") # this does not
work
img = zeros((10, 10), dtype=uint8)
for i in range(10):
 img[i,i] = 255;
plt.imshow(img)
print "data type of img:"
print img.dtype
print "size of img:" + str(img.size)
print img
From: Marius 't H. <M.t...@ai...> - 2010年06月07日 12:38:32
Can't you do ginput(n=1) in a while loop? Ginput needs to end at some 
point, right? Initiating a never ending loop seems like the wrong 
solution for any real-life problem.
On 06/07/2010 01:15 PM, Thøger Emil Juul Thorsen wrote:
> Bump - no one knows a solution/workaround to this?
>
>
> 
>> Hello list;
>>
>> I'm new to python/matplotlib, migrating from IDL. I need to do some
>> interactive point selection with mouse, and the pyplot.ginput() routine
>> seemed to be just the right thing here. I do however need to be able to
>> make a not previously specified number of clicks, so ginput(n=0) is a
>> requirement.
>>
>> However, when I press enter on my laptop (with no middle mouse button),
>> I get the error message:
>>
>> TypeError: stop_event_loop() takes exactly 1 argument (2 given)
>>
>> I've tried two different pieces of example code from the matplotlib SF
>> page.
>> I'm using Matplotlib 0.99.1 on Ubuntu 10.04.
>> Is there any solution or workaround? If I cannot have this
>> functionality, it is, unfortunately, kind of a deal breaker for at least
>> some of my work, and I'd like to keep it purely Python.
>>
>> Best regards;
>>
>> Emil
>>
>>
>> ------------------------------------------------------------------------------
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit. See the prize list and enter to win:
>> http://p.sf.net/sfu/thinkgeek-promo
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> 
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
From: Thøger E. J. T. <th...@fy...> - 2010年06月07日 11:16:06
Bump - no one knows a solution/workaround to this?
> Hello list; 
> 
> I'm new to python/matplotlib, migrating from IDL. I need to do some
> interactive point selection with mouse, and the pyplot.ginput() routine
> seemed to be just the right thing here. I do however need to be able to
> make a not previously specified number of clicks, so ginput(n=0) is a
> requirement. 
> 
> However, when I press enter on my laptop (with no middle mouse button),
> I get the error message:
> 
> TypeError: stop_event_loop() takes exactly 1 argument (2 given)
> 
> I've tried two different pieces of example code from the matplotlib SF
> page.
> I'm using Matplotlib 0.99.1 on Ubuntu 10.04.
> Is there any solution or workaround? If I cannot have this
> functionality, it is, unfortunately, kind of a deal breaker for at least
> some of my work, and I'd like to keep it purely Python.
> 
> Best regards; 
> 
> Emil
> 
> 
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate 
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
> lucky parental unit. See the prize list and enter to win: 
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Tennessee L. <tle...@gm...> - 2010年06月07日 01:45:22
Hi Eric,
Thanks for the tip -- I didn't realise that. I had been able to import
tkinter, but perhaps only some parts of tkinter exhibit the problem. I
worked around the issue by installing matplotlib via rpm since it is only a
little behind the curve. It may be that the issue was due to tkagg.so being
the 'last' object searched, but actually the real problem was more likely to
be the lack of some xlib library not being found. In any case, I am happy
enough with where I am now :)
Thanks for your response,
-Tennessee
On Mon, Jun 7, 2010 at 10:37 AM, Eric Firing <ef...@ha...> wrote:
> On 06/06/2010 01:40 PM, Tennessee Leeuwenburg wrote:
> > Hi all,
> >
> > I have what seems to be a small error trying to reference a function in
> > the compiled tk backend which doesn't exist in the shared object (See
> > stack trace below). I'm running on a 64-bit system.
> >
> > Has anyone else had this issue? Google didn't reveal a lot to me
> > (searching for "undefined symbol: XCreateIC" exact phrase yielded 2
> > results, neither very enlightening for me.
>
> It looks like your tkinter or Tk is not finding xlib; XCreateIC is an
> xlib routine. There is no direct reference to it in _tkagg.cpp.
>
> What happens if you do
>
> python -c "import Tkinter; root=Tkinter.Tk()"
>
>
>
> >
> > python -c `import matplotlib; print matplotlib.__version__`:
> >
> > 0.99.3
> >
> > To repeat this error (for me), simply run
> > python -c 'import pylab'
> >
> >
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > File "/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/pylab.py",
> > line 1, in <module>
> > from matplotlib.pylab import *
> > File
> > "/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/pylab.py",
> > line 247, in <module>
> > from matplotlib.pyplot import *
> > File
> > "/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/pyplot.py",
> line
> > 78, in <module>
> > new_figure_manager, draw_if_interactive, show = pylab_setup()
> > File
> >
> "/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/backends/__init__.py",
> > line 25, in pylab_setup
> > globals(),locals(),[backend_name])
> > File
> >
> "/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/backends/backend_tkagg.py",
> > line 8, in <module>
> > import tkagg # Paint image to Tk photo blitter
> > extension
> > File
> >
> "/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/backends/tkagg.py",
> > line 1, in <module>
> > import _tkagg
> > ImportError:
> >
> /home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/backends/_tkagg.so:
> > undefined symbol: XCreateIC
> > >>> import tkagg
> >
> >
> >
> > Output from --verbose:
> > CONFIGDIR=/home/ho/nmc/tjl/.matplotlib
> > matplotlib data path
> > /home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/mpl-data
> > loaded rc file
> >
> /home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/mpl-data/matplotlibrc
> > matplotlib version 0.99.3
> > verbose.level helpful
> > interactive is False
> > units is False
> > platform is linux2
> > Using fontManager instance from
> /home/ho/nmc/tjl/.matplotlib/fontList.cache
> >
> >
> >
> > --
> > --------------------------------------------------
> > Tennessee Leeuwenburg
> > http://myownhat.blogspot.com/
> > "Don't believe everything you think"
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > ThinkGeek and WIRED's GeekDad team up for the Ultimate
> > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> > lucky parental unit. See the prize list and enter to win:
> > http://p.sf.net/sfu/thinkgeek-promo
> >
> >
> >
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
-- 
--------------------------------------------------
Tennessee Leeuwenburg
http://myownhat.blogspot.com/
"Don't believe everything you think"
From: Eric F. <ef...@ha...> - 2010年06月07日 00:37:38
On 06/06/2010 01:40 PM, Tennessee Leeuwenburg wrote:
> Hi all,
>
> I have what seems to be a small error trying to reference a function in
> the compiled tk backend which doesn't exist in the shared object (See
> stack trace below). I'm running on a 64-bit system.
>
> Has anyone else had this issue? Google didn't reveal a lot to me
> (searching for "undefined symbol: XCreateIC" exact phrase yielded 2
> results, neither very enlightening for me.
It looks like your tkinter or Tk is not finding xlib; XCreateIC is an 
xlib routine. There is no direct reference to it in _tkagg.cpp.
What happens if you do
python -c "import Tkinter; root=Tkinter.Tk()"
>
> python -c `import matplotlib; print matplotlib.__version__`:
>
> 0.99.3
>
> To repeat this error (for me), simply run
> python -c 'import pylab'
>
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/pylab.py",
> line 1, in <module>
> from matplotlib.pylab import *
> File
> "/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/pylab.py",
> line 247, in <module>
> from matplotlib.pyplot import *
> File
> "/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/pyplot.py", line
> 78, in <module>
> new_figure_manager, draw_if_interactive, show = pylab_setup()
> File
> "/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/backends/__init__.py",
> line 25, in pylab_setup
> globals(),locals(),[backend_name])
> File
> "/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/backends/backend_tkagg.py",
> line 8, in <module>
> import tkagg # Paint image to Tk photo blitter
> extension
> File
> "/home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/backends/tkagg.py",
> line 1, in <module>
> import _tkagg
> ImportError:
> /home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/backends/_tkagg.so:
> undefined symbol: XCreateIC
> >>> import tkagg
>
>
>
> Output from --verbose:
> CONFIGDIR=/home/ho/nmc/tjl/.matplotlib
> matplotlib data path
> /home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/mpl-data
> loaded rc file
> /home/ho/nmc/tjl/nltk/lib/python2.6/site-packages/matplotlib/mpl-data/matplotlibrc
> matplotlib version 0.99.3
> verbose.level helpful
> interactive is False
> units is False
> platform is linux2
> Using fontManager instance from /home/ho/nmc/tjl/.matplotlib/fontList.cache
>
>
>
> --
> --------------------------------------------------
> Tennessee Leeuwenburg
> http://myownhat.blogspot.com/
> "Don't believe everything you think"
>
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
2 messages has been excluded from this view by a project administrator.

Showing 18 results of 18

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