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
(9) |
2
(6) |
3
(8) |
4
(6) |
5
|
6
(1) |
7
(4) |
8
(15) |
9
(11) |
10
|
11
(1) |
12
(13) |
13
(5) |
14
(10) |
15
(12) |
16
(7) |
17
(12) |
18
(5) |
19
(4) |
20
(11) |
21
(4) |
22
(11) |
23
(28) |
24
(24) |
25
(23) |
26
(6) |
27
(7) |
28
(17) |
29
(21) |
30
(6) |
|
|
|
Hello, I appologize for a slightly off topic post, but I'm sure someone here knows the answer. I like the idea of developing code interactively with IPython, but I cannot get past one hurdle. I would like to write my code in a module that I then import and instantiate classes or call functions from interactively. However, when I try to do this in IPython I find that after I import my code, it is cached and even after restarting and reimporting, the changes are not recognized. What is the paradigm people use to get around this, or what is the preferred paradigm for interactive development using IPython. Thanks, Glenn
Hi Stephen, On Mon, Apr 28, 2008 at 1:57 PM, Stephen George <ste...@op...> wrote: > Hi Sunzen, > > I also get similar results as you. - always have Thank you for your trying. > > 'extremely zoomed' means I pick a corner of your staircase, and zoom in > on the corner multiple times, each time no bigger than the cross hairs > of the cursor. > > If I don't get the blocked out triangles I get the data changing direction > > i.e. if looking at > > | > --- > > I might see > --- or |__ or __| > | Good description! > > I've seen similar results with other graphic toolset (not python based) > Oh. What kind of other graphic toolset? > I feel it something to do with zooming in beyond the resolution of the > underlying system (no evidence of this) > I have no idea of it. Could some masters say something about it? -- sunzen <<freedom & enjoyment>>
yes it does! -lz now shows up and the pstest runs fine. Any idea what is failing wrt pkgconfig? thanks, Johann John Hunter wrote: > On Mon, Apr 28, 2008 at 3:55 PM, Johann Cohen-Tanugi > <co...@sl...> wrote: > >> Hi Michael, >> >> ok, here it is attached. For completion, from the matplotlib directory, I >> issued : >> [cohen@jarrett matplotlib]$ \rm -rf build >> [cohen@jarrett matplotlib]$ python setup.py build > build.log >> The following was printed out to the screen and not redirected : >> src/backend_agg.cpp: In member function 'Py::Object >> RendererAgg::write_rgba(const Py::Tuple&)': >> src/backend_agg.cpp:1303: warning: ignoring return value of 'size_t >> fwrite(const void*, size_t, size_t, FILE*)', declared with attribute >> warn_unused_result >> src/backend_agg.cpp:1308: warning: ignoring return value of 'size_t >> fwrite(const void*, size_t, size_t, FILE*)', declared with attribute >> warn_unused_result >> lib/enthought/traits/ctraits.c: In function '_trait_cast': >> lib/enthought/traits/ctraits.c:2370: warning: format '%lu' expects type >> 'long unsigned int', but argument 3 has type 'Py_ssize_t' >> >> I have revision 5087 of matplotlib. In the log you can see that libz is >> linked against for the backends, but not for ft2font...... >> Best, >> > > Do you have pkgconfig installed? In setupext.py, it looks like the > 'z' lib is added only if we are not finding pkgconfig: > > def add_ft2font_flags(module): > 'Add the module flags to ft2font extension' > if not get_pkgconfig(module, 'freetype2'): > module.libraries.extend(['freetype', 'z']) > > If get_pkgconfig is returning True, but it is not configured properly > to find libz for freetype2, you may fall into a configure black hole > where libz never gets added. > > Does it help to modify this function to read: > > def add_ft2font_flags(module): > 'Add the module flags to ft2font extension' > if not get_pkgconfig(module, 'freetype2'): > module.libraries.extend(['freetype', 'z']) > add_base_flags(module) > > basedirs = module.include_dirs[:] # copy the list to avoid inf loop! > for d in basedirs: > module.include_dirs.append(os.path.join(d, 'freetype2')) > p = os.path.join(d, 'lib/freetype2/include') > if os.path.exists(p): module.include_dirs.append(p) > p = os.path.join(d, 'lib/freetype2/include/freetype2') > if os.path.exists(p): module.include_dirs.append(p) > > basedirs = module.library_dirs[:] # copy the list to avoid inf loop! > for d in basedirs: > p = os.path.join(d, 'freetype2/lib') > if os.path.exists(p): module.library_dirs.append(p) > else: > add_base_flags(module) > module.libraries.append('z') >
On Mon, Apr 28, 2008 at 3:55 PM, Johann Cohen-Tanugi <co...@sl...> wrote: > Hi Michael, > > ok, here it is attached. For completion, from the matplotlib directory, I > issued : > [cohen@jarrett matplotlib]$ \rm -rf build > [cohen@jarrett matplotlib]$ python setup.py build > build.log > The following was printed out to the screen and not redirected : > src/backend_agg.cpp: In member function 'Py::Object > RendererAgg::write_rgba(const Py::Tuple&)': > src/backend_agg.cpp:1303: warning: ignoring return value of 'size_t > fwrite(const void*, size_t, size_t, FILE*)', declared with attribute > warn_unused_result > src/backend_agg.cpp:1308: warning: ignoring return value of 'size_t > fwrite(const void*, size_t, size_t, FILE*)', declared with attribute > warn_unused_result > lib/enthought/traits/ctraits.c: In function '_trait_cast': > lib/enthought/traits/ctraits.c:2370: warning: format '%lu' expects type > 'long unsigned int', but argument 3 has type 'Py_ssize_t' > > I have revision 5087 of matplotlib. In the log you can see that libz is > linked against for the backends, but not for ft2font...... > Best, Do you have pkgconfig installed? In setupext.py, it looks like the 'z' lib is added only if we are not finding pkgconfig: def add_ft2font_flags(module): 'Add the module flags to ft2font extension' if not get_pkgconfig(module, 'freetype2'): module.libraries.extend(['freetype', 'z']) If get_pkgconfig is returning True, but it is not configured properly to find libz for freetype2, you may fall into a configure black hole where libz never gets added. Does it help to modify this function to read: def add_ft2font_flags(module): 'Add the module flags to ft2font extension' if not get_pkgconfig(module, 'freetype2'): module.libraries.extend(['freetype', 'z']) add_base_flags(module) basedirs = module.include_dirs[:] # copy the list to avoid inf loop! for d in basedirs: module.include_dirs.append(os.path.join(d, 'freetype2')) p = os.path.join(d, 'lib/freetype2/include') if os.path.exists(p): module.include_dirs.append(p) p = os.path.join(d, 'lib/freetype2/include/freetype2') if os.path.exists(p): module.include_dirs.append(p) basedirs = module.library_dirs[:] # copy the list to avoid inf loop! for d in basedirs: p = os.path.join(d, 'freetype2/lib') if os.path.exists(p): module.library_dirs.append(p) else: add_base_flags(module) module.libraries.append('z')
Hi Michael, ok, here it is attached. For completion, from the matplotlib directory, I issued : [cohen@jarrett matplotlib]$ \rm -rf build [cohen@jarrett matplotlib]$ python setup.py build > build.log The following was printed out to the screen and not redirected : src/backend_agg.cpp: In member function ‘Py::Object RendererAgg::write_rgba(const Py::Tuple&)’: src/backend_agg.cpp:1303: warning: ignoring return value of ‘size_t fwrite(const void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result src/backend_agg.cpp:1308: warning: ignoring return value of ‘size_t fwrite(const void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result lib/enthought/traits/ctraits.c: In function ‘_trait_cast’: lib/enthought/traits/ctraits.c:2370: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘Py_ssize_t’ I have revision 5087 of matplotlib. In the log you can see that libz is linked against for the backends, but not for ft2font...... Best, Johann Michael Droettboom wrote: > Johann Cohen-Tanugi wrote: >> After browsing the web a little, it seems that the matplotlib build >> of ft2font2 is missing the linking of libz.so : if I add it to the >> command line >> [cohen@jarrett matplotlib]$ g++ -pthread -shared >> build/temp.linux-i686-2.5/src/ft2font.o >> build/temp.linux-i686-2.5/src/mplutils.o >> build/temp.linux-i686-2.5/CXX/cxxsupport.o >> build/temp.linux-i686-2.5/CXX/cxx_extensions.o >> build/temp.linux-i686-2.5/CXX/IndirectPythonInterface.o >> build/temp.linux-i686-2.5/CXX/cxxextensions.o -L/usr/local/lib >> -L/usr/lib -lstdc++ -lm -lpython2.5 -L/usr/lib -lfreetype _lz -o >> build/lib.linux-i686-2.5/matplotlib/ft2font.so >> >> and then reinstall matplotlib, the problem goes away, id est I can >> import pylab, and the pstest example works. One word on this last >> statement though : as is the pstest example does not open any window >> to show the plots, id est the final show() command does not do >> anything. But if I savefig('pstest'), I can open the pstest.ps >> resulting file with gv and can see the plots. I do not know whether >> this behavior is expected.... >> >> So, should I fill a ticket for the inclusion of libz.so at link time >> of ft2font.so? > matplotlib is should already be attempting to dynamically link libz > when it generates ft2font.so. I wonder why it wasn't for you. Can you > revert any manual changes, remove the build directory ("build" at the > top of the source tree), rebuild ("python setup.py build") and attach > the output to this list? > > Cheers, > Mike >> thanks, >> Johann >> >> Arthur M. Greene wrote: >>> The replies have been helpful, but I'm still trying to figure out >>> where the problem lies, but I have noticed that matplotlib-0.90.1 >>> apparently doesn't use ttconv. I have this version installed at home >>> and am able to generate poscript without a problem. Are you able to >>> tell which package is complaining about the undefined symbol(s)? >>> >>> If I downgrade (at work) I will probably lose some capabilities, >>> since the file size of 0.91.2 is more than twice that of 0.90.1 (!) >>> But I would prefer to be able to generate .ps or .eps, even if I >>> lose the capability of using LaTeX for plot labels, e.g. >>> >>> Best wishes, >>> >>> Arthur >>> >>> ------------------------------- >>> amg -at- iri -dot- columbia -dot- edu >>> >>> >>> Johann Cohen-Tanugi wrote: >>>> Sorry for the preceding mis-threaded version. Here it is again : >>>> >>>> I dont know if it is related, but I am actually failing an exemple : >>>> [cohen@jarrett matplotlib]$ ipython examples/pstest.py >>>> --------------------------------------------------------------------------- >>>> >>>> ImportError Traceback (most recent call last) >>>> >>>> /home/cohen/data1/sources/python/matplotlib-svn/matplotlib/examples/pstest.py >>>> in <module>() >>>> 2 import matplotlib >>>> 3 matplotlib.use('PS') >>>> ----> 4 from pylab import * >>>> 5 >>>> 6 def f(t): >>>> >>>> /usr/lib/python2.5/site-packages/pylab.py in <module>() >>>> ----> 1 >>>> 2 >>>> 3 from matplotlib.pylab import * >>>> 4 import matplotlib.pylab >>>> 5 __doc__ = matplotlib.pylab.__doc__ >>>> >>>> /usr/lib/python2.5/site-packages/matplotlib/pylab.py in <module>() >>>> 201 from numpy import ma >>>> 202 >>>> --> 203 from matplotlib import mpl # pulls in most modules >>>> 204 >>>> 205 # catch more than an import error here, since the src could >>>> fail too, >>>> >>>> /usr/lib/python2.5/site-packages/matplotlib/mpl.py in <module>() >>>> 1 >>>> ----> 2 from matplotlib import artist >>>> 3 from matplotlib import axis >>>> 4 from matplotlib import axes >>>> 5 from matplotlib import cbook >>>> 6 from matplotlib import collections >>>> >>>> /usr/lib/python2.5/site-packages/matplotlib/axis.py in <module>() >>>> 12 from ticker import NullLocator, FixedLocator, AutoLocator >>>> 13 >>>> ---> 14 from font_manager import FontProperties >>>> 15 from text import Text, TextWithDash >>>> 16 from transforms import Affine2D, Bbox, blended_transform_factory, \ >>>> >>>> /usr/lib/python2.5/site-packages/matplotlib/font_manager.py in >>>> <module>() >>>> 38 import matplotlib >>>> 39 from matplotlib import afm >>>> ---> 40 from matplotlib import ft2font >>>> 41 from matplotlib import rcParams, get_configdir >>>> 42 from matplotlib.cbook import is_string_like >>>> >>>> ImportError: >>>> /usr/lib/python2.5/site-packages/matplotlib/ft2font.so: undefined >>>> symbol: inflateReset >>>> >>>> My config is : >>>> ============================================================================ >>>> >>>> BUILDING MATPLOTLIB >>>> matplotlib: 0.98pre >>>> python: 2.5.1 (r251:54863, Oct 30 2007, 13:54:11) [GCC >>>> 4.1.2 20070925 (Red Hat 4.1.2-33)] >>>> platform: linux2 >>>> >>>> REQUIRED DEPENDENCIES >>>> numpy: 1.1.0.dev5077 >>>> freetype2: 9.16.3 >>>> >>>> OPTIONAL BACKEND DEPENDENCIES >>>> libpng: 1.2.22 >>>> Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 >>>> wxPython: 2.8.4.0 >>>> * WxAgg extension not required for wxPython >= 2.8 >>>> Gtk+: gtk+: 2.12.5, glib: 2.14.6, pygtk: 2.12.0, >>>> pygobject: 2.14.0 >>>> Qt: Qt: 3.3.8, PyQt: 3.17.4 >>>> Qt4: Qt: 4.3.3, PyQt4: 4.3.3 >>>> Cairo: 1.4.12 >>>> >>>> OPTIONAL DATE/TIMEZONE DEPENDENCIES >>>> datetime: present, version unknown >>>> dateutil: matplotlib will provide >>>> pytz: matplotlib will provide >>>> >>>> OPTIONAL USETEX DEPENDENCIES >>>> dvipng: 1.5 >>>> ghostscript: 8.61 >>>> latex: 3.141592 >>>> >>>> EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES >>>> configobj: matplotlib will provide >>>> enthought.traits: matplotlib will provide >>>> >>>> best, >>>> Johann >>>> >>>> >>>> >>>> Johann Cohen-Tanugi wrote: >>>>> hmm, I did not use matplotlib recently, but looking at the >>>>> library, I would guess that I have the same issue : >>>>> [cohen@jarrett ~]$ ldd >>>>> /usr/lib/python2.5/site-packages/matplotlib/ttconv.so >>>>> linux-gate.so.1 => (0x00110000) >>>>> libpython2.5.so.1.0 => /usr/lib/libpython2.5.so.1.0 (0x001c1000) >>>>> libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00308000) >>>>> libm.so.6 => /lib/libm.so.6 (0x0011f000) >>>>> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00148000) >>>>> libpthread.so.0 => /lib/libpthread.so.0 (0x00154000) >>>>> libc.so.6 => /lib/libc.so.6 (0x003f3000) >>>>> libdl.so.2 => /lib/libdl.so.2 (0x0016d000) >>>>> libutil.so.1 => /lib/libutil.so.1 (0x00172000) >>>>> /lib/ld-linux.so.2 (0x001a4000) >>>>> [cohen@jarrett ~]$ nm >>>>> /usr/lib/python2.5/site-packages/matplotlib/ttconv.so | grep >>>>> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >>>>> U _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE@@GLIBCXX_3.4 >>>>> >>>>> >>>>> Arthur M. Greene wrote: >>>>>> Hello Matplotlib users, >>>>>> >>>>>> I'm having difficulty generating postscript, and receiving an >>>>>> error that I'm guessing reflects a version conflict, but I'm not >>>>>> sure exactly which version of what needs to be changed. If I >>>>>> generate a plot (backend is QtAGG, so I get a window), then click >>>>>> on the save button, I get a dialog saying: >>>>>> >>>>>> /path_to/matplotlib/ttconv.so: undefined symbol: >>>>>> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >>>>>> >>>>>> Alternatively, if I do >>>>>> >>>>>> import matplotlib; matplotlib.use('PS'); from pylab import * >>>>>> >>>>>> the result is as follows (essentially the same error): >>>>>> >>>>>> exceptions.ImportError >>>>>> Traceback (most recent call last) >>>>>> >>>>>> /home/amg/<ipython console> >>>>>> >>>>>> /home/amg/cdat4_1/lib/python2.4/site-packages/pylab.py >>>>>> ----> 1 from matplotlib.pylab import * >>>>>> 2 import matplotlib.pylab >>>>>> 3 __doc__ = matplotlib.pylab.__doc__ >>>>>> >>>>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pylab.py >>>>>> 290 >>>>>> 291 >>>>>> --> 292 from matplotlib.pyplot import * >>>>>> 293 >>>>>> 294 >>>>>> >>>>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pyplot.py >>>>>> 35 >>>>>> 36 from matplotlib.backends import pylab_setup >>>>>> ---> 37 new_figure_manager, draw_if_interactive, show = >>>>>> pylab_setup() >>>>>> 38 >>>>>> 39 def switch_backend(newbackend): >>>>>> >>>>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/__init__.py >>>>>> in pylab_setup() >>>>>> 22 backend_name = 'backend_'+backend.lower() >>>>>> 23 backend_mod = __import__('matplotlib.backends.'+backend_name, >>>>>> ---> 24 globals(),locals(),[backend_name]) >>>>>> 25 >>>>>> 26 # Things we pull in from all backends >>>>>> >>>>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py >>>>>> >>>>>> 22 from matplotlib.font_manager import findfont, >>>>>> is_opentype_cff_font >>>>>> 23 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT, >>>>>> LOAD_NO_HINTING >>>>>> ---> 24 from matplotlib.ttconv import convert_ttf_to_ps >>>>>> 25 from matplotlib.mathtext import MathTextParser >>>>>> 26 from matplotlib._mathtext_data import uni2type1 >>>>>> >>>>>> ImportError: >>>>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/ttconv.so: >>>>>> undefined symbol: >>>>>> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >>>>>> >>>>>> (The above backtrace is from iPython, but I get the same thing >>>>>> running from plain ol' Python.) >>>>>> >>>>>> Googling suggests that this might mean I have a version of >>>>>> Matplotlib that is too recent for the g++ compiler on my system, >>>>>> but I'm not really certain. I'm running as an unprivileged user >>>>>> on RHEL4, with most of the necessary libraries already present on >>>>>> the system. I've only had to add qt and PyQt, which are installed >>>>>> in my home directory, where Matplotlib can apparently find them. >>>>>> Version info is as follows: >>>>>> >>>>>> These are locally installed: >>>>>> Python 2.4 >>>>>> qt-3.3.8b >>>>>> PyQt-3.17.4 >>>>>> Matplotlib-0.91.2 >>>>>> >>>>>> The following were already present: >>>>>> Kernel: 2.6.9-67.0.1.ELsmp, on i686 >>>>>> glibc-2.3.4-2.39 >>>>>> gcc-3.4.6-9 >>>>>> tcl-8.4.7-2 >>>>>> tk-8.4.7-3.el4_6.1 >>>>>> freetype-2.1.9-6.el4 >>>>>> libpng-1.2.7-3.el4_5.1 >>>>>> zlib-1.2.1.2-1.2 >>>>>> ghostscript-7.07-33.2.el4_6.1 >>>>>> Output of 'gs --version': 8.50 >>>>>> >>>>>> I tried switching to qt4/PyQt4, but then ipython -pylab hangs... >>>>>> >>>>>> Not sure what other info to supply; suggestions appreciated. >>>>>> >>>>>> Thanks! >>>>>> >>>>>> Arthur >>>>>> >>> ------------------------------------------------------------------------- >>> >>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >>> Don't miss this year's exciting event. There's still time to save >>> 100ドル. Use priority code J8TL2D2. >>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >>> >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> ------------------------------------------------------------------------- >> >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save >> 100ドル. Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Arthur M. Greene wrote: > The replies have been helpful, but I'm still trying to figure out where > the problem lies, but I have noticed that matplotlib-0.90.1 apparently > doesn't use ttconv. That is correct. ttconv is a tool to convert and subset Truetype fonts to Postscript fonts for embedding in Postscript files. > I have this version installed at home and am able to > generate poscript without a problem. Are you able to tell which package > is complaining about the undefined symbol(s)? > The undefined symbols you get are from the C++ standard library. These sorts of messages are very common when you compile something on one version of gcc (libg++) and then run on a machine with another version of libg++. Did you obtain binaries for matplotlib 0.91.2 somewhere, or did you compile from source? > If I downgrade (at work) I will probably lose some capabilities, since > the file size of 0.91.2 is more than twice that of 0.90.1 (!) I suspect most of the file size difference is due to the inclusion of the STIX math fonts. There weren't huge amounts of code added between 0.90 and 0.91. Cheers, Mike > But I > would prefer to be able to generate .ps or .eps, even if I lose the > capability of using LaTeX for plot labels, e.g. > > Best wishes, > > Arthur > > ------------------------------- > amg -at- iri -dot- columbia -dot- edu > > > Johann Cohen-Tanugi wrote: > >> Sorry for the preceding mis-threaded version. Here it is again : >> >> I dont know if it is related, but I am actually failing an exemple : >> [cohen@jarrett matplotlib]$ ipython examples/pstest.py >> --------------------------------------------------------------------------- >> ImportError Traceback (most recent call last) >> >> /home/cohen/data1/sources/python/matplotlib-svn/matplotlib/examples/pstest.py >> in <module>() >> 2 import matplotlib >> 3 matplotlib.use('PS') >> ----> 4 from pylab import * >> 5 >> 6 def f(t): >> >> /usr/lib/python2.5/site-packages/pylab.py in <module>() >> ----> 1 >> 2 >> 3 from matplotlib.pylab import * >> 4 import matplotlib.pylab >> 5 __doc__ = matplotlib.pylab.__doc__ >> >> /usr/lib/python2.5/site-packages/matplotlib/pylab.py in <module>() >> 201 from numpy import ma >> 202 >> --> 203 from matplotlib import mpl # pulls in most modules >> 204 >> 205 # catch more than an import error here, since the src could fail >> too, >> >> /usr/lib/python2.5/site-packages/matplotlib/mpl.py in <module>() >> 1 >> ----> 2 from matplotlib import artist >> 3 from matplotlib import axis >> 4 from matplotlib import axes >> 5 from matplotlib import cbook >> 6 from matplotlib import collections >> >> /usr/lib/python2.5/site-packages/matplotlib/axis.py in <module>() >> 12 from ticker import NullLocator, FixedLocator, AutoLocator >> 13 >> ---> 14 from font_manager import FontProperties >> 15 from text import Text, TextWithDash >> 16 from transforms import Affine2D, Bbox, blended_transform_factory, \ >> >> /usr/lib/python2.5/site-packages/matplotlib/font_manager.py in <module>() >> 38 import matplotlib >> 39 from matplotlib import afm >> ---> 40 from matplotlib import ft2font >> 41 from matplotlib import rcParams, get_configdir >> 42 from matplotlib.cbook import is_string_like >> >> ImportError: /usr/lib/python2.5/site-packages/matplotlib/ft2font.so: >> undefined symbol: inflateReset >> >> My config is : >> ============================================================================ >> BUILDING MATPLOTLIB >> matplotlib: 0.98pre >> python: 2.5.1 (r251:54863, Oct 30 2007, 13:54:11) [GCC >> 4.1.2 20070925 (Red Hat 4.1.2-33)] >> platform: linux2 >> >> REQUIRED DEPENDENCIES >> numpy: 1.1.0.dev5077 >> freetype2: 9.16.3 >> >> OPTIONAL BACKEND DEPENDENCIES >> libpng: 1.2.22 >> Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 >> wxPython: 2.8.4.0 >> * WxAgg extension not required for wxPython >= 2.8 >> Gtk+: gtk+: 2.12.5, glib: 2.14.6, pygtk: 2.12.0, >> pygobject: 2.14.0 >> Qt: Qt: 3.3.8, PyQt: 3.17.4 >> Qt4: Qt: 4.3.3, PyQt4: 4.3.3 >> Cairo: 1.4.12 >> >> OPTIONAL DATE/TIMEZONE DEPENDENCIES >> datetime: present, version unknown >> dateutil: matplotlib will provide >> pytz: matplotlib will provide >> >> OPTIONAL USETEX DEPENDENCIES >> dvipng: 1.5 >> ghostscript: 8.61 >> latex: 3.141592 >> >> EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES >> configobj: matplotlib will provide >> enthought.traits: matplotlib will provide >> >> best, >> Johann >> >> >> >> Johann Cohen-Tanugi wrote: >> >>> hmm, I did not use matplotlib recently, but looking at the library, I >>> would guess that I have the same issue : >>> [cohen@jarrett ~]$ ldd /usr/lib/python2.5/site-packages/matplotlib/ttconv.so >>> linux-gate.so.1 => (0x00110000) >>> libpython2.5.so.1.0 => /usr/lib/libpython2.5.so.1.0 (0x001c1000) >>> libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00308000) >>> libm.so.6 => /lib/libm.so.6 (0x0011f000) >>> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00148000) >>> libpthread.so.0 => /lib/libpthread.so.0 (0x00154000) >>> libc.so.6 => /lib/libc.so.6 (0x003f3000) >>> libdl.so.2 => /lib/libdl.so.2 (0x0016d000) >>> libutil.so.1 => /lib/libutil.so.1 (0x00172000) >>> /lib/ld-linux.so.2 (0x001a4000) >>> [cohen@jarrett ~]$ nm >>> /usr/lib/python2.5/site-packages/matplotlib/ttconv.so | grep >>> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >>> U >>> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE@@GLIBCXX_3.4 >>> >>> >>> Arthur M. Greene wrote: >>> >>> >>>> Hello Matplotlib users, >>>> >>>> I'm having difficulty generating postscript, and receiving an error that >>>> I'm guessing reflects a version conflict, but I'm not sure exactly which >>>> version of what needs to be changed. If I generate a plot (backend is >>>> QtAGG, so I get a window), then click on the save button, I get a dialog >>>> saying: >>>> >>>> /path_to/matplotlib/ttconv.so: undefined symbol: >>>> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >>>> >>>> Alternatively, if I do >>>> >>>> import matplotlib; matplotlib.use('PS'); from pylab import * >>>> >>>> the result is as follows (essentially the same error): >>>> >>>> exceptions.ImportError >>>> Traceback (most recent call last) >>>> >>>> /home/amg/<ipython console> >>>> >>>> /home/amg/cdat4_1/lib/python2.4/site-packages/pylab.py >>>> ----> 1 from matplotlib.pylab import * >>>> 2 import matplotlib.pylab >>>> 3 __doc__ = matplotlib.pylab.__doc__ >>>> >>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pylab.py >>>> 290 >>>> 291 >>>> --> 292 from matplotlib.pyplot import * >>>> 293 >>>> 294 >>>> >>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pyplot.py >>>> 35 >>>> 36 from matplotlib.backends import pylab_setup >>>> ---> 37 new_figure_manager, draw_if_interactive, show = pylab_setup() >>>> 38 >>>> 39 def switch_backend(newbackend): >>>> >>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/__init__.py >>>> in pylab_setup() >>>> 22 backend_name = 'backend_'+backend.lower() >>>> 23 backend_mod = __import__('matplotlib.backends.'+backend_name, >>>> ---> 24 globals(),locals(),[backend_name]) >>>> 25 >>>> 26 # Things we pull in from all backends >>>> >>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py >>>> >>>> 22 from matplotlib.font_manager import findfont, >>>> is_opentype_cff_font >>>> 23 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT, >>>> LOAD_NO_HINTING >>>> ---> 24 from matplotlib.ttconv import convert_ttf_to_ps >>>> 25 from matplotlib.mathtext import MathTextParser >>>> 26 from matplotlib._mathtext_data import uni2type1 >>>> >>>> ImportError: >>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/ttconv.so: >>>> undefined symbol: _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >>>> >>>> (The above backtrace is from iPython, but I get the same thing running >>>> from plain ol' Python.) >>>> >>>> Googling suggests that this might mean I have a version of Matplotlib >>>> that is too recent for the g++ compiler on my system, but I'm not really >>>> certain. I'm running as an unprivileged user on RHEL4, with most of the >>>> necessary libraries already present on the system. I've only had to add >>>> qt and PyQt, which are installed in my home directory, where Matplotlib >>>> can apparently find them. Version info is as follows: >>>> >>>> These are locally installed: >>>> Python 2.4 >>>> qt-3.3.8b >>>> PyQt-3.17.4 >>>> Matplotlib-0.91.2 >>>> >>>> The following were already present: >>>> Kernel: 2.6.9-67.0.1.ELsmp, on i686 >>>> glibc-2.3.4-2.39 >>>> gcc-3.4.6-9 >>>> tcl-8.4.7-2 >>>> tk-8.4.7-3.el4_6.1 >>>> freetype-2.1.9-6.el4 >>>> libpng-1.2.7-3.el4_5.1 >>>> zlib-1.2.1.2-1.2 >>>> ghostscript-7.07-33.2.el4_6.1 >>>> Output of 'gs --version': 8.50 >>>> >>>> I tried switching to qt4/PyQt4, but then ipython -pylab hangs... >>>> >>>> Not sure what other info to supply; suggestions appreciated. >>>> >>>> Thanks! >>>> >>>> Arthur >>>> >>>> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save 100ドル. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Johann Cohen-Tanugi wrote: > After browsing the web a little, it seems that the matplotlib build of > ft2font2 is missing the linking of libz.so : if I add it to the command > line > [cohen@jarrett matplotlib]$ g++ -pthread -shared > build/temp.linux-i686-2.5/src/ft2font.o > build/temp.linux-i686-2.5/src/mplutils.o > build/temp.linux-i686-2.5/CXX/cxxsupport.o > build/temp.linux-i686-2.5/CXX/cxx_extensions.o > build/temp.linux-i686-2.5/CXX/IndirectPythonInterface.o > build/temp.linux-i686-2.5/CXX/cxxextensions.o -L/usr/local/lib > -L/usr/lib -lstdc++ -lm -lpython2.5 -L/usr/lib -lfreetype _lz -o > build/lib.linux-i686-2.5/matplotlib/ft2font.so > > and then reinstall matplotlib, the problem goes away, id est I can > import pylab, and the pstest example works. One word on this last > statement though : as is the pstest example does not open any window to > show the plots, id est the final show() command does not do anything. > But if I savefig('pstest'), I can open the pstest.ps resulting file with > gv and can see the plots. I do not know whether this behavior is > expected.... > > So, should I fill a ticket for the inclusion of libz.so at link time of > ft2font.so? > matplotlib is should already be attempting to dynamically link libz when it generates ft2font.so. I wonder why it wasn't for you. Can you revert any manual changes, remove the build directory ("build" at the top of the source tree), rebuild ("python setup.py build") and attach the output to this list? Cheers, Mike > thanks, > Johann > > Arthur M. Greene wrote: > >> The replies have been helpful, but I'm still trying to figure out where >> the problem lies, but I have noticed that matplotlib-0.90.1 apparently >> doesn't use ttconv. I have this version installed at home and am able to >> generate poscript without a problem. Are you able to tell which package >> is complaining about the undefined symbol(s)? >> >> If I downgrade (at work) I will probably lose some capabilities, since >> the file size of 0.91.2 is more than twice that of 0.90.1 (!) But I >> would prefer to be able to generate .ps or .eps, even if I lose the >> capability of using LaTeX for plot labels, e.g. >> >> Best wishes, >> >> Arthur >> >> ------------------------------- >> amg -at- iri -dot- columbia -dot- edu >> >> >> Johann Cohen-Tanugi wrote: >> >> >>> Sorry for the preceding mis-threaded version. Here it is again : >>> >>> I dont know if it is related, but I am actually failing an exemple : >>> [cohen@jarrett matplotlib]$ ipython examples/pstest.py >>> --------------------------------------------------------------------------- >>> ImportError Traceback (most recent call last) >>> >>> /home/cohen/data1/sources/python/matplotlib-svn/matplotlib/examples/pstest.py >>> in <module>() >>> 2 import matplotlib >>> 3 matplotlib.use('PS') >>> ----> 4 from pylab import * >>> 5 >>> 6 def f(t): >>> >>> /usr/lib/python2.5/site-packages/pylab.py in <module>() >>> ----> 1 >>> 2 >>> 3 from matplotlib.pylab import * >>> 4 import matplotlib.pylab >>> 5 __doc__ = matplotlib.pylab.__doc__ >>> >>> /usr/lib/python2.5/site-packages/matplotlib/pylab.py in <module>() >>> 201 from numpy import ma >>> 202 >>> --> 203 from matplotlib import mpl # pulls in most modules >>> 204 >>> 205 # catch more than an import error here, since the src could fail >>> too, >>> >>> /usr/lib/python2.5/site-packages/matplotlib/mpl.py in <module>() >>> 1 >>> ----> 2 from matplotlib import artist >>> 3 from matplotlib import axis >>> 4 from matplotlib import axes >>> 5 from matplotlib import cbook >>> 6 from matplotlib import collections >>> >>> /usr/lib/python2.5/site-packages/matplotlib/axis.py in <module>() >>> 12 from ticker import NullLocator, FixedLocator, AutoLocator >>> 13 >>> ---> 14 from font_manager import FontProperties >>> 15 from text import Text, TextWithDash >>> 16 from transforms import Affine2D, Bbox, blended_transform_factory, \ >>> >>> /usr/lib/python2.5/site-packages/matplotlib/font_manager.py in <module>() >>> 38 import matplotlib >>> 39 from matplotlib import afm >>> ---> 40 from matplotlib import ft2font >>> 41 from matplotlib import rcParams, get_configdir >>> 42 from matplotlib.cbook import is_string_like >>> >>> ImportError: /usr/lib/python2.5/site-packages/matplotlib/ft2font.so: >>> undefined symbol: inflateReset >>> >>> My config is : >>> ============================================================================ >>> BUILDING MATPLOTLIB >>> matplotlib: 0.98pre >>> python: 2.5.1 (r251:54863, Oct 30 2007, 13:54:11) [GCC >>> 4.1.2 20070925 (Red Hat 4.1.2-33)] >>> platform: linux2 >>> >>> REQUIRED DEPENDENCIES >>> numpy: 1.1.0.dev5077 >>> freetype2: 9.16.3 >>> >>> OPTIONAL BACKEND DEPENDENCIES >>> libpng: 1.2.22 >>> Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 >>> wxPython: 2.8.4.0 >>> * WxAgg extension not required for wxPython >= 2.8 >>> Gtk+: gtk+: 2.12.5, glib: 2.14.6, pygtk: 2.12.0, >>> pygobject: 2.14.0 >>> Qt: Qt: 3.3.8, PyQt: 3.17.4 >>> Qt4: Qt: 4.3.3, PyQt4: 4.3.3 >>> Cairo: 1.4.12 >>> >>> OPTIONAL DATE/TIMEZONE DEPENDENCIES >>> datetime: present, version unknown >>> dateutil: matplotlib will provide >>> pytz: matplotlib will provide >>> >>> OPTIONAL USETEX DEPENDENCIES >>> dvipng: 1.5 >>> ghostscript: 8.61 >>> latex: 3.141592 >>> >>> EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES >>> configobj: matplotlib will provide >>> enthought.traits: matplotlib will provide >>> >>> best, >>> Johann >>> >>> >>> >>> Johann Cohen-Tanugi wrote: >>> >>> >>>> hmm, I did not use matplotlib recently, but looking at the library, I >>>> would guess that I have the same issue : >>>> [cohen@jarrett ~]$ ldd /usr/lib/python2.5/site-packages/matplotlib/ttconv.so >>>> linux-gate.so.1 => (0x00110000) >>>> libpython2.5.so.1.0 => /usr/lib/libpython2.5.so.1.0 (0x001c1000) >>>> libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00308000) >>>> libm.so.6 => /lib/libm.so.6 (0x0011f000) >>>> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00148000) >>>> libpthread.so.0 => /lib/libpthread.so.0 (0x00154000) >>>> libc.so.6 => /lib/libc.so.6 (0x003f3000) >>>> libdl.so.2 => /lib/libdl.so.2 (0x0016d000) >>>> libutil.so.1 => /lib/libutil.so.1 (0x00172000) >>>> /lib/ld-linux.so.2 (0x001a4000) >>>> [cohen@jarrett ~]$ nm >>>> /usr/lib/python2.5/site-packages/matplotlib/ttconv.so | grep >>>> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >>>> U >>>> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE@@GLIBCXX_3.4 >>>> >>>> >>>> Arthur M. Greene wrote: >>>> >>>> >>>> >>>>> Hello Matplotlib users, >>>>> >>>>> I'm having difficulty generating postscript, and receiving an error that >>>>> I'm guessing reflects a version conflict, but I'm not sure exactly which >>>>> version of what needs to be changed. If I generate a plot (backend is >>>>> QtAGG, so I get a window), then click on the save button, I get a dialog >>>>> saying: >>>>> >>>>> /path_to/matplotlib/ttconv.so: undefined symbol: >>>>> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >>>>> >>>>> Alternatively, if I do >>>>> >>>>> import matplotlib; matplotlib.use('PS'); from pylab import * >>>>> >>>>> the result is as follows (essentially the same error): >>>>> >>>>> exceptions.ImportError >>>>> Traceback (most recent call last) >>>>> >>>>> /home/amg/<ipython console> >>>>> >>>>> /home/amg/cdat4_1/lib/python2.4/site-packages/pylab.py >>>>> ----> 1 from matplotlib.pylab import * >>>>> 2 import matplotlib.pylab >>>>> 3 __doc__ = matplotlib.pylab.__doc__ >>>>> >>>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pylab.py >>>>> 290 >>>>> 291 >>>>> --> 292 from matplotlib.pyplot import * >>>>> 293 >>>>> 294 >>>>> >>>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pyplot.py >>>>> 35 >>>>> 36 from matplotlib.backends import pylab_setup >>>>> ---> 37 new_figure_manager, draw_if_interactive, show = pylab_setup() >>>>> 38 >>>>> 39 def switch_backend(newbackend): >>>>> >>>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/__init__.py >>>>> in pylab_setup() >>>>> 22 backend_name = 'backend_'+backend.lower() >>>>> 23 backend_mod = __import__('matplotlib.backends.'+backend_name, >>>>> ---> 24 globals(),locals(),[backend_name]) >>>>> 25 >>>>> 26 # Things we pull in from all backends >>>>> >>>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py >>>>> >>>>> 22 from matplotlib.font_manager import findfont, >>>>> is_opentype_cff_font >>>>> 23 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT, >>>>> LOAD_NO_HINTING >>>>> ---> 24 from matplotlib.ttconv import convert_ttf_to_ps >>>>> 25 from matplotlib.mathtext import MathTextParser >>>>> 26 from matplotlib._mathtext_data import uni2type1 >>>>> >>>>> ImportError: >>>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/ttconv.so: >>>>> undefined symbol: _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >>>>> >>>>> (The above backtrace is from iPython, but I get the same thing running >>>>> from plain ol' Python.) >>>>> >>>>> Googling suggests that this might mean I have a version of Matplotlib >>>>> that is too recent for the g++ compiler on my system, but I'm not really >>>>> certain. I'm running as an unprivileged user on RHEL4, with most of the >>>>> necessary libraries already present on the system. I've only had to add >>>>> qt and PyQt, which are installed in my home directory, where Matplotlib >>>>> can apparently find them. Version info is as follows: >>>>> >>>>> These are locally installed: >>>>> Python 2.4 >>>>> qt-3.3.8b >>>>> PyQt-3.17.4 >>>>> Matplotlib-0.91.2 >>>>> >>>>> The following were already present: >>>>> Kernel: 2.6.9-67.0.1.ELsmp, on i686 >>>>> glibc-2.3.4-2.39 >>>>> gcc-3.4.6-9 >>>>> tcl-8.4.7-2 >>>>> tk-8.4.7-3.el4_6.1 >>>>> freetype-2.1.9-6.el4 >>>>> libpng-1.2.7-3.el4_5.1 >>>>> zlib-1.2.1.2-1.2 >>>>> ghostscript-7.07-33.2.el4_6.1 >>>>> Output of 'gs --version': 8.50 >>>>> >>>>> I tried switching to qt4/PyQt4, but then ipython -pylab hangs... >>>>> >>>>> Not sure what other info to supply; suggestions appreciated. >>>>> >>>>> Thanks! >>>>> >>>>> Arthur >>>>> >>>>> >>>>> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save 100ドル. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save 100ドル. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Michiel de Hoon wrote: > Thanks! > I uploaded a demo on sourceforge: > > http://sourceforge.net/tracker/index.php?func=detail&aid=1952339&group_id=80706&atid=560722 Michiel, I have committed a modification of the demo, and also made some tweaks in hexbin itself. Manuel Metz also made some changes and additions, and more may be in order as the function is tested and used by more people. The main change I made is to use log10 for the log scaling. This the usual expectation, I believe. For interpreting the actual value of what is plotted--the counts per cell--it might be good to output the area of the cell, or have an option to plot something like counts per unit area divided by total counts, which would be a probability density. Thanks again for contributing hexbin. Eric
Cay anyone can provide some guidance on using system-installed fonts on Mac OS X? I'm using the PDF backend in matplotlib 0.91.2 on 10.5 (leopard)'s native python 2.5 installed with easy_install. Things seem to be working well and with matplotlib.font_manager.OSXInstalledFonts() I can see that it seems to know what fonts I have on my system. I can even get it to find some of these fonts however any attempts to use them results in errors when writing out the figure (I've included some stack traces below). Are there reasons to think another backend would work if PDF fails? Also, I'd be interested in an easy way to take a given font file and know whether it is of a type supported by MPL and what name I should give to MPL to find and use it. Nick Matsakis ------ an error using /Library/Fonts/tahoma.ttf Traceback (most recent call last): ...skipping some calls... File "/Library/Python/2.5/site-packages/matplotlib-0.91.2-py2.5-macosx-10.5-ppc.egg/matplotlib/backend_bases.py", line 1195, in print_figure **kwargs) File "/Library/Python/2.5/site-packages/matplotlib-0.91.2-py2.5-macosx-10.5-ppc.egg/matplotlib/backends/backend_pdf.py", line 1969, in print_pdf file.close() File "/Library/Python/2.5/site-packages/matplotlib-0.91.2-py2.5-macosx-10.5-ppc.egg/matplotlib/backends/backend_pdf.py", line 420, in close self.writeFonts() File "/Library/Python/2.5/site-packages/matplotlib-0.91.2-py2.5-macosx-10.5-ppc.egg/matplotlib/backends/backend_pdf.py", line 490, in writeFonts fontdictObject = self.embedTTF(realpath, chars[1]) File "/Library/Python/2.5/site-packages/matplotlib-0.91.2-py2.5-macosx-10.5-ppc.egg/matplotlib/backends/backend_pdf.py", line 859, in embedTTF ps_name = Name(font.get_sfnt()[(1,0,0,6)]) KeyError: (1, 0, 0, 6) ----- a different error using /System/Library/Fonts/AppleGothic.ttf ...skipping some calls... File "/Library/Python/2.5/site-packages/matplotlib-0.91.2-py2.5-macosx-10.5-ppc.egg/matplotlib/backend_bases.py", line 1195, in print_figure **kwargs) File "/Library/Python/2.5/site-packages/matplotlib-0.91.2-py2.5-macosx-10.5-ppc.egg/matplotlib/backends/backend_pdf.py", line 1969, in print_pdf file.close() File "/Library/Python/2.5/site-packages/matplotlib-0.91.2-py2.5-macosx-10.5-ppc.egg/matplotlib/backends/backend_pdf.py", line 420, in close self.writeFonts() File "/Library/Python/2.5/site-packages/matplotlib-0.91.2-py2.5-macosx-10.5-ppc.egg/matplotlib/backends/backend_pdf.py", line 490, in writeFonts fontdictObject = self.embedTTF(realpath, chars[1]) File "/Library/Python/2.5/site-packages/matplotlib-0.91.2-py2.5-macosx-10.5-ppc.egg/matplotlib/backends/backend_pdf.py", line 901, in embedTTF return embedTTFType3(font, characters, descriptor) File "/Library/Python/2.5/site-packages/matplotlib-0.91.2-py2.5-macosx-10.5-ppc.egg/matplotlib/backends/backend_pdf.py", line 689, in embedTTFType3 glyph_name = font.get_glyph_name(gind) RuntimeError: Face has no glyph names
On Mon, Apr 28, 2008 at 7:41 AM, Dick Moores <rdm...@gm...> wrote: > Win XP Pro > > I'm trying to get Matplotlib set up, and I've followed the suggestion > to move matplotlibrc to C:\Documents and Settings\Riley. But it seems > I also need to rename it to .matplotlibrc . Explorer won't let me. So > how to do this? You do not need to do this. In a typical installation, the file will reside in C:\\Python25\Lib\site-packages\matplotlib\mpl-data\matplotlibrc You can edit that file. JDH
Win XP Pro I'm trying to get Matplotlib set up, and I've followed the suggestion to move matplotlibrc to C:\Documents and Settings\Riley. But it seems I also need to rename it to .matplotlibrc . Explorer won't let me. So how to do this? Thanks, Dick Moores -- UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/
After browsing the web a little, it seems that the matplotlib build of ft2font2 is missing the linking of libz.so : if I add it to the command line [cohen@jarrett matplotlib]$ g++ -pthread -shared build/temp.linux-i686-2.5/src/ft2font.o build/temp.linux-i686-2.5/src/mplutils.o build/temp.linux-i686-2.5/CXX/cxxsupport.o build/temp.linux-i686-2.5/CXX/cxx_extensions.o build/temp.linux-i686-2.5/CXX/IndirectPythonInterface.o build/temp.linux-i686-2.5/CXX/cxxextensions.o -L/usr/local/lib -L/usr/lib -lstdc++ -lm -lpython2.5 -L/usr/lib -lfreetype _lz -o build/lib.linux-i686-2.5/matplotlib/ft2font.so and then reinstall matplotlib, the problem goes away, id est I can import pylab, and the pstest example works. One word on this last statement though : as is the pstest example does not open any window to show the plots, id est the final show() command does not do anything. But if I savefig('pstest'), I can open the pstest.ps resulting file with gv and can see the plots. I do not know whether this behavior is expected.... So, should I fill a ticket for the inclusion of libz.so at link time of ft2font.so? thanks, Johann Arthur M. Greene wrote: > The replies have been helpful, but I'm still trying to figure out where > the problem lies, but I have noticed that matplotlib-0.90.1 apparently > doesn't use ttconv. I have this version installed at home and am able to > generate poscript without a problem. Are you able to tell which package > is complaining about the undefined symbol(s)? > > If I downgrade (at work) I will probably lose some capabilities, since > the file size of 0.91.2 is more than twice that of 0.90.1 (!) But I > would prefer to be able to generate .ps or .eps, even if I lose the > capability of using LaTeX for plot labels, e.g. > > Best wishes, > > Arthur > > ------------------------------- > amg -at- iri -dot- columbia -dot- edu > > > Johann Cohen-Tanugi wrote: > >> Sorry for the preceding mis-threaded version. Here it is again : >> >> I dont know if it is related, but I am actually failing an exemple : >> [cohen@jarrett matplotlib]$ ipython examples/pstest.py >> --------------------------------------------------------------------------- >> ImportError Traceback (most recent call last) >> >> /home/cohen/data1/sources/python/matplotlib-svn/matplotlib/examples/pstest.py >> in <module>() >> 2 import matplotlib >> 3 matplotlib.use('PS') >> ----> 4 from pylab import * >> 5 >> 6 def f(t): >> >> /usr/lib/python2.5/site-packages/pylab.py in <module>() >> ----> 1 >> 2 >> 3 from matplotlib.pylab import * >> 4 import matplotlib.pylab >> 5 __doc__ = matplotlib.pylab.__doc__ >> >> /usr/lib/python2.5/site-packages/matplotlib/pylab.py in <module>() >> 201 from numpy import ma >> 202 >> --> 203 from matplotlib import mpl # pulls in most modules >> 204 >> 205 # catch more than an import error here, since the src could fail >> too, >> >> /usr/lib/python2.5/site-packages/matplotlib/mpl.py in <module>() >> 1 >> ----> 2 from matplotlib import artist >> 3 from matplotlib import axis >> 4 from matplotlib import axes >> 5 from matplotlib import cbook >> 6 from matplotlib import collections >> >> /usr/lib/python2.5/site-packages/matplotlib/axis.py in <module>() >> 12 from ticker import NullLocator, FixedLocator, AutoLocator >> 13 >> ---> 14 from font_manager import FontProperties >> 15 from text import Text, TextWithDash >> 16 from transforms import Affine2D, Bbox, blended_transform_factory, \ >> >> /usr/lib/python2.5/site-packages/matplotlib/font_manager.py in <module>() >> 38 import matplotlib >> 39 from matplotlib import afm >> ---> 40 from matplotlib import ft2font >> 41 from matplotlib import rcParams, get_configdir >> 42 from matplotlib.cbook import is_string_like >> >> ImportError: /usr/lib/python2.5/site-packages/matplotlib/ft2font.so: >> undefined symbol: inflateReset >> >> My config is : >> ============================================================================ >> BUILDING MATPLOTLIB >> matplotlib: 0.98pre >> python: 2.5.1 (r251:54863, Oct 30 2007, 13:54:11) [GCC >> 4.1.2 20070925 (Red Hat 4.1.2-33)] >> platform: linux2 >> >> REQUIRED DEPENDENCIES >> numpy: 1.1.0.dev5077 >> freetype2: 9.16.3 >> >> OPTIONAL BACKEND DEPENDENCIES >> libpng: 1.2.22 >> Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 >> wxPython: 2.8.4.0 >> * WxAgg extension not required for wxPython >= 2.8 >> Gtk+: gtk+: 2.12.5, glib: 2.14.6, pygtk: 2.12.0, >> pygobject: 2.14.0 >> Qt: Qt: 3.3.8, PyQt: 3.17.4 >> Qt4: Qt: 4.3.3, PyQt4: 4.3.3 >> Cairo: 1.4.12 >> >> OPTIONAL DATE/TIMEZONE DEPENDENCIES >> datetime: present, version unknown >> dateutil: matplotlib will provide >> pytz: matplotlib will provide >> >> OPTIONAL USETEX DEPENDENCIES >> dvipng: 1.5 >> ghostscript: 8.61 >> latex: 3.141592 >> >> EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES >> configobj: matplotlib will provide >> enthought.traits: matplotlib will provide >> >> best, >> Johann >> >> >> >> Johann Cohen-Tanugi wrote: >> >>> hmm, I did not use matplotlib recently, but looking at the library, I >>> would guess that I have the same issue : >>> [cohen@jarrett ~]$ ldd /usr/lib/python2.5/site-packages/matplotlib/ttconv.so >>> linux-gate.so.1 => (0x00110000) >>> libpython2.5.so.1.0 => /usr/lib/libpython2.5.so.1.0 (0x001c1000) >>> libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00308000) >>> libm.so.6 => /lib/libm.so.6 (0x0011f000) >>> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00148000) >>> libpthread.so.0 => /lib/libpthread.so.0 (0x00154000) >>> libc.so.6 => /lib/libc.so.6 (0x003f3000) >>> libdl.so.2 => /lib/libdl.so.2 (0x0016d000) >>> libutil.so.1 => /lib/libutil.so.1 (0x00172000) >>> /lib/ld-linux.so.2 (0x001a4000) >>> [cohen@jarrett ~]$ nm >>> /usr/lib/python2.5/site-packages/matplotlib/ttconv.so | grep >>> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >>> U >>> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE@@GLIBCXX_3.4 >>> >>> >>> Arthur M. Greene wrote: >>> >>> >>>> Hello Matplotlib users, >>>> >>>> I'm having difficulty generating postscript, and receiving an error that >>>> I'm guessing reflects a version conflict, but I'm not sure exactly which >>>> version of what needs to be changed. If I generate a plot (backend is >>>> QtAGG, so I get a window), then click on the save button, I get a dialog >>>> saying: >>>> >>>> /path_to/matplotlib/ttconv.so: undefined symbol: >>>> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >>>> >>>> Alternatively, if I do >>>> >>>> import matplotlib; matplotlib.use('PS'); from pylab import * >>>> >>>> the result is as follows (essentially the same error): >>>> >>>> exceptions.ImportError >>>> Traceback (most recent call last) >>>> >>>> /home/amg/<ipython console> >>>> >>>> /home/amg/cdat4_1/lib/python2.4/site-packages/pylab.py >>>> ----> 1 from matplotlib.pylab import * >>>> 2 import matplotlib.pylab >>>> 3 __doc__ = matplotlib.pylab.__doc__ >>>> >>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pylab.py >>>> 290 >>>> 291 >>>> --> 292 from matplotlib.pyplot import * >>>> 293 >>>> 294 >>>> >>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pyplot.py >>>> 35 >>>> 36 from matplotlib.backends import pylab_setup >>>> ---> 37 new_figure_manager, draw_if_interactive, show = pylab_setup() >>>> 38 >>>> 39 def switch_backend(newbackend): >>>> >>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/__init__.py >>>> in pylab_setup() >>>> 22 backend_name = 'backend_'+backend.lower() >>>> 23 backend_mod = __import__('matplotlib.backends.'+backend_name, >>>> ---> 24 globals(),locals(),[backend_name]) >>>> 25 >>>> 26 # Things we pull in from all backends >>>> >>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py >>>> >>>> 22 from matplotlib.font_manager import findfont, >>>> is_opentype_cff_font >>>> 23 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT, >>>> LOAD_NO_HINTING >>>> ---> 24 from matplotlib.ttconv import convert_ttf_to_ps >>>> 25 from matplotlib.mathtext import MathTextParser >>>> 26 from matplotlib._mathtext_data import uni2type1 >>>> >>>> ImportError: >>>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/ttconv.so: >>>> undefined symbol: _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >>>> >>>> (The above backtrace is from iPython, but I get the same thing running >>>> from plain ol' Python.) >>>> >>>> Googling suggests that this might mean I have a version of Matplotlib >>>> that is too recent for the g++ compiler on my system, but I'm not really >>>> certain. I'm running as an unprivileged user on RHEL4, with most of the >>>> necessary libraries already present on the system. I've only had to add >>>> qt and PyQt, which are installed in my home directory, where Matplotlib >>>> can apparently find them. Version info is as follows: >>>> >>>> These are locally installed: >>>> Python 2.4 >>>> qt-3.3.8b >>>> PyQt-3.17.4 >>>> Matplotlib-0.91.2 >>>> >>>> The following were already present: >>>> Kernel: 2.6.9-67.0.1.ELsmp, on i686 >>>> glibc-2.3.4-2.39 >>>> gcc-3.4.6-9 >>>> tcl-8.4.7-2 >>>> tk-8.4.7-3.el4_6.1 >>>> freetype-2.1.9-6.el4 >>>> libpng-1.2.7-3.el4_5.1 >>>> zlib-1.2.1.2-1.2 >>>> ghostscript-7.07-33.2.el4_6.1 >>>> Output of 'gs --version': 8.50 >>>> >>>> I tried switching to qt4/PyQt4, but then ipython -pylab hangs... >>>> >>>> Not sure what other info to supply; suggestions appreciated. >>>> >>>> Thanks! >>>> >>>> Arthur >>>> >>>> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save 100ドル. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
On Mon, Apr 28, 2008 at 4:44 AM, Robin <ro...@gm...> wrote: > I'm still curious to know if theres any convenience functions to do > this type of bar plotting. Also I've come to rely on the 'stacked' > option of MATLAB's bar command - is it possible to get that effect in > matplotlib? > > Here is an example of what I'd like to be able to do: > http://www.mathworks.com/access/helpdesk/help/techdoc/ref/bar2.gif Take a look at the stacked bar demo: http://matplotlib.sourceforge.net/examples/bar_stacked.py for stacked bar charts. We do not currently have any helper functions for the side-by-side comparisons, so you have to provide the offsets yourself, as in http://matplotlib.sourceforge.net/examples/barchart_demo.py though such functionality would certainly be useful. JDH
On Mon, Apr 21, 2008 at 5:09 PM, Robin <ro...@gm...> wrote: > Hi, > > Is there anything like the matlab bar function implemented which > automatically plots groups of bars? Ie bar(x,y) where x.shape = (m,) > and y.shape =(m,n) or similar... > In Matlab this would draw M groups of N vertical bars, colored appropriately. > > I can't get bar to do this and didn't find anything in the > documentation - unfortunately I wasn't able to search the mailing list > since sourceforge was playing up. > > Thanks, > > Robin Hi, I'm still curious to know if theres any convenience functions to do this type of bar plotting. Also I've come to rely on the 'stacked' option of MATLAB's bar command - is it possible to get that effect in matplotlib? Here is an example of what I'd like to be able to do: http://www.mathworks.com/access/helpdesk/help/techdoc/ref/bar2.gif Thanks, Robin
Michiel, That looks very nice. I committed it to the trunk as svn 5084. Thank you! Please provide a simple demo script suitable for inclusion in the examples subdirectory, and I will commit that also. I think it would be nice to have two subplots, one with a linear color scale, the other with a log scale, and with a colorbar for each. (There might be some wrinkles with colorbar for a log scale--I don't recall.) Eric Michiel de Hoon wrote: > Hi everybody, > > About two weeks ago I was asking on this mailing list if matplotlib can > make hexagonal binning plots as an alternative to scatter plots. I have > now written such a function for matplotlib. In case other people are > also looking for this functionality, the patch is available here: > > http://sourceforge.net/tracker/index.php?func=detail&aid=1952339&group_id=80706&atid=560722 > <http://sourceforge.net/tracker/index.php?func=detail&aid=1952339&group_id=80706&atid=560722> > > As an example of this function, the two figures below show a traditional > scatter plot, and a hexagonal binning plot using the same data: > > Traditional scatter plot: > http://bonsai.ims.u-tokyo.ac.jp/~mdehoon/scatter.png > <http://bonsai.ims.u-tokyo.ac.jp/%7Emdehoon/scatter.png> > > Hexagonal binning plot, using the same data: > http://bonsai.ims.u-tokyo.ac.jp/~mdehoon/hexbin.png > <http://bonsai.ims.u-tokyo.ac.jp/%7Emdehoon/hexbin.png> > > > Best, > > --Michiel. > > > > > > Hi everybody, > > Is there a function in matplotlib for hexagonal binning of scatter > plots? Here are some examples of what I am looking for: > > http://faculty.washington.edu/tlumley/survey/greyhexbin.png > > http://www.spss.com/research/wilkinson/nViZn/hexbin.gif > > http://addictedtor.free.fr/graphiques/75x75/tn_139.png > > Thanks! > > --Michiel. > > ------------------------------------------------------------------------ > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try > it now. > <http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save 100ドル. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Hi Sunzen, I also get similar results as you. - always have 'extremely zoomed' means I pick a corner of your staircase, and zoom in on the corner multiple times, each time no bigger than the cross hairs of the cursor. If I don't get the blocked out triangles I get the data changing direction i.e. if looking at | --- I might see --- or |__ or __| | I've seen similar results with other graphic toolset (not python based) I feel it something to do with zooming in beyond the resolution of the underlying system (no evidence of this) Steve Sunzen Wang wrote: > Oh, a pity. > While it's true that it is easily reproduced on my system and also my > users'. > On my system, matplotlib is 0.90.1, and gtkagg backend is used. > > Thank you for your attention. > > Regards > On Fri, Apr 25, 2008 at 8:15 PM, Michael Droettboom <md...@st... > <mailto:md...@st...>> wrote: > > I'm not able to reproduce this bug. What version of matplotlib > are you using and which backend? > > Cheers, > Mike > -- > Michael Droettboom > Science Software Branch > Operations and Engineering Division > Space Telescope Science Institute > Operated by AURA for NASA > > > -- > sunzen > <<freedom & enjoyment>> > > ------------------------------------------------------------------------
Hi everybody, About two weeks ago I was asking on this mailing list if matplotlib can make hexagonal binning plots as an alternative to scatter plots. I have now written such a function for matplotlib. In case other people are also looking for this functionality, the patch is available here: http://sourceforge.net/tracker/index.php?func=detail&aid=1952339&group_id=80706&atid=560722 As an example of this function, the two figures below show a traditional scatter plot, and a hexagonal binning plot using the same data: Traditional scatter plot: http://bonsai.ims.u-tokyo.ac.jp/~mdehoon/scatter.png Hexagonal binning plot, using the same data: http://bonsai.ims.u-tokyo.ac.jp/~mdehoon/hexbin.png Best, --Michiel. Hi everybody, Is there a function in matplotlib for hexagonal binning of scatter plots? Here are some examples of what I am looking for: http://faculty.washington.edu/tlumley/survey/greyhexbin.png http://www.spss.com/research/wilkinson/nViZn/hexbin.gif http://addictedtor.free.fr/graphiques/75x75/tn_139.png Thanks! --Michiel. --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Hi. I run these codes in ipython command line interface. from pylab import * subplot(211) plot([1,2,3],[1,2,3]) set(gca(), xtickslabel = []) and got the error saying "Type error: set() does not take keyword arguments" My OS is windows XP. The code I used is copied from matplotlib tutorial. Pls help explain why it didnt work. Thanks. Sam -- View this message in context: http://www.nabble.com/pls-help%3A-error-using-set%28gca%28%29%2C...%29-tp16930305p16930305.html Sent from the matplotlib - users mailing list archive at Nabble.com.
Oh, a pity. While it's true that it is easily reproduced on my system and also my users'. On my system, matplotlib is 0.90.1, and gtkagg backend is used. Thank you for your attention. Regards On Fri, Apr 25, 2008 at 8:15 PM, Michael Droettboom <md...@st...> wrote: > I'm not able to reproduce this bug. What version of matplotlib are you > using and which backend? > > Cheers, > Mike > -- > Michael Droettboom > Science Software Branch > Operations and Engineering Division > Space Telescope Science Institute > Operated by AURA for NASA > > -- sunzen <<freedom & enjoyment>>
Hello: I am new to Matplotlib. I have my data organized in three columns: x,y,z. x and y represents the coordinates of a point and z is the elevation at that point. I want to create a chart that has on y axis the elevation and on x axis the distance between the coordinates of the points. The chart displays a line that passes all the points, and if is possible interpolate between the elevation points Can somebody give me an example? Thank you in advance, Ionut ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
The replies have been helpful, but I'm still trying to figure out where the problem lies, but I have noticed that matplotlib-0.90.1 apparently doesn't use ttconv. I have this version installed at home and am able to generate poscript without a problem. Are you able to tell which package is complaining about the undefined symbol(s)? If I downgrade (at work) I will probably lose some capabilities, since the file size of 0.91.2 is more than twice that of 0.90.1 (!) But I would prefer to be able to generate .ps or .eps, even if I lose the capability of using LaTeX for plot labels, e.g. Best wishes, Arthur ------------------------------- amg -at- iri -dot- columbia -dot- edu Johann Cohen-Tanugi wrote: > Sorry for the preceding mis-threaded version. Here it is again : > > I dont know if it is related, but I am actually failing an exemple : > [cohen@jarrett matplotlib]$ ipython examples/pstest.py > --------------------------------------------------------------------------- > ImportError Traceback (most recent call last) > > /home/cohen/data1/sources/python/matplotlib-svn/matplotlib/examples/pstest.py > in <module>() > 2 import matplotlib > 3 matplotlib.use('PS') > ----> 4 from pylab import * > 5 > 6 def f(t): > > /usr/lib/python2.5/site-packages/pylab.py in <module>() > ----> 1 > 2 > 3 from matplotlib.pylab import * > 4 import matplotlib.pylab > 5 __doc__ = matplotlib.pylab.__doc__ > > /usr/lib/python2.5/site-packages/matplotlib/pylab.py in <module>() > 201 from numpy import ma > 202 > --> 203 from matplotlib import mpl # pulls in most modules > 204 > 205 # catch more than an import error here, since the src could fail > too, > > /usr/lib/python2.5/site-packages/matplotlib/mpl.py in <module>() > 1 > ----> 2 from matplotlib import artist > 3 from matplotlib import axis > 4 from matplotlib import axes > 5 from matplotlib import cbook > 6 from matplotlib import collections > > /usr/lib/python2.5/site-packages/matplotlib/axis.py in <module>() > 12 from ticker import NullLocator, FixedLocator, AutoLocator > 13 > ---> 14 from font_manager import FontProperties > 15 from text import Text, TextWithDash > 16 from transforms import Affine2D, Bbox, blended_transform_factory, \ > > /usr/lib/python2.5/site-packages/matplotlib/font_manager.py in <module>() > 38 import matplotlib > 39 from matplotlib import afm > ---> 40 from matplotlib import ft2font > 41 from matplotlib import rcParams, get_configdir > 42 from matplotlib.cbook import is_string_like > > ImportError: /usr/lib/python2.5/site-packages/matplotlib/ft2font.so: > undefined symbol: inflateReset > > My config is : > ============================================================================ > BUILDING MATPLOTLIB > matplotlib: 0.98pre > python: 2.5.1 (r251:54863, Oct 30 2007, 13:54:11) [GCC > 4.1.2 20070925 (Red Hat 4.1.2-33)] > platform: linux2 > > REQUIRED DEPENDENCIES > numpy: 1.1.0.dev5077 > freetype2: 9.16.3 > > OPTIONAL BACKEND DEPENDENCIES > libpng: 1.2.22 > Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 > wxPython: 2.8.4.0 > * WxAgg extension not required for wxPython >= 2.8 > Gtk+: gtk+: 2.12.5, glib: 2.14.6, pygtk: 2.12.0, > pygobject: 2.14.0 > Qt: Qt: 3.3.8, PyQt: 3.17.4 > Qt4: Qt: 4.3.3, PyQt4: 4.3.3 > Cairo: 1.4.12 > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > datetime: present, version unknown > dateutil: matplotlib will provide > pytz: matplotlib will provide > > OPTIONAL USETEX DEPENDENCIES > dvipng: 1.5 > ghostscript: 8.61 > latex: 3.141592 > > EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES > configobj: matplotlib will provide > enthought.traits: matplotlib will provide > > best, > Johann > > > > Johann Cohen-Tanugi wrote: >> hmm, I did not use matplotlib recently, but looking at the library, I >> would guess that I have the same issue : >> [cohen@jarrett ~]$ ldd /usr/lib/python2.5/site-packages/matplotlib/ttconv.so >> linux-gate.so.1 => (0x00110000) >> libpython2.5.so.1.0 => /usr/lib/libpython2.5.so.1.0 (0x001c1000) >> libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00308000) >> libm.so.6 => /lib/libm.so.6 (0x0011f000) >> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00148000) >> libpthread.so.0 => /lib/libpthread.so.0 (0x00154000) >> libc.so.6 => /lib/libc.so.6 (0x003f3000) >> libdl.so.2 => /lib/libdl.so.2 (0x0016d000) >> libutil.so.1 => /lib/libutil.so.1 (0x00172000) >> /lib/ld-linux.so.2 (0x001a4000) >> [cohen@jarrett ~]$ nm >> /usr/lib/python2.5/site-packages/matplotlib/ttconv.so | grep >> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >> U >> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE@@GLIBCXX_3.4 >> >> >> Arthur M. Greene wrote: >> >>> Hello Matplotlib users, >>> >>> I'm having difficulty generating postscript, and receiving an error that >>> I'm guessing reflects a version conflict, but I'm not sure exactly which >>> version of what needs to be changed. If I generate a plot (backend is >>> QtAGG, so I get a window), then click on the save button, I get a dialog >>> saying: >>> >>> /path_to/matplotlib/ttconv.so: undefined symbol: >>> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >>> >>> Alternatively, if I do >>> >>> import matplotlib; matplotlib.use('PS'); from pylab import * >>> >>> the result is as follows (essentially the same error): >>> >>> exceptions.ImportError >>> Traceback (most recent call last) >>> >>> /home/amg/<ipython console> >>> >>> /home/amg/cdat4_1/lib/python2.4/site-packages/pylab.py >>> ----> 1 from matplotlib.pylab import * >>> 2 import matplotlib.pylab >>> 3 __doc__ = matplotlib.pylab.__doc__ >>> >>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pylab.py >>> 290 >>> 291 >>> --> 292 from matplotlib.pyplot import * >>> 293 >>> 294 >>> >>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pyplot.py >>> 35 >>> 36 from matplotlib.backends import pylab_setup >>> ---> 37 new_figure_manager, draw_if_interactive, show = pylab_setup() >>> 38 >>> 39 def switch_backend(newbackend): >>> >>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/__init__.py >>> in pylab_setup() >>> 22 backend_name = 'backend_'+backend.lower() >>> 23 backend_mod = __import__('matplotlib.backends.'+backend_name, >>> ---> 24 globals(),locals(),[backend_name]) >>> 25 >>> 26 # Things we pull in from all backends >>> >>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py >>> >>> 22 from matplotlib.font_manager import findfont, >>> is_opentype_cff_font >>> 23 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT, >>> LOAD_NO_HINTING >>> ---> 24 from matplotlib.ttconv import convert_ttf_to_ps >>> 25 from matplotlib.mathtext import MathTextParser >>> 26 from matplotlib._mathtext_data import uni2type1 >>> >>> ImportError: >>> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/ttconv.so: >>> undefined symbol: _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >>> >>> (The above backtrace is from iPython, but I get the same thing running >>> from plain ol' Python.) >>> >>> Googling suggests that this might mean I have a version of Matplotlib >>> that is too recent for the g++ compiler on my system, but I'm not really >>> certain. I'm running as an unprivileged user on RHEL4, with most of the >>> necessary libraries already present on the system. I've only had to add >>> qt and PyQt, which are installed in my home directory, where Matplotlib >>> can apparently find them. Version info is as follows: >>> >>> These are locally installed: >>> Python 2.4 >>> qt-3.3.8b >>> PyQt-3.17.4 >>> Matplotlib-0.91.2 >>> >>> The following were already present: >>> Kernel: 2.6.9-67.0.1.ELsmp, on i686 >>> glibc-2.3.4-2.39 >>> gcc-3.4.6-9 >>> tcl-8.4.7-2 >>> tk-8.4.7-3.el4_6.1 >>> freetype-2.1.9-6.el4 >>> libpng-1.2.7-3.el4_5.1 >>> zlib-1.2.1.2-1.2 >>> ghostscript-7.07-33.2.el4_6.1 >>> Output of 'gs --version': 8.50 >>> >>> I tried switching to qt4/PyQt4, but then ipython -pylab hangs... >>> >>> Not sure what other info to supply; suggestions appreciated. >>> >>> Thanks! >>> >>> Arthur >>>
Sorry for the preceding mis-threaded version. Here it is again : I dont know if it is related, but I am actually failing an exemple : [cohen@jarrett matplotlib]$ ipython examples/pstest.py --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/cohen/data1/sources/python/matplotlib-svn/matplotlib/examples/pstest.py in <module>() 2 import matplotlib 3 matplotlib.use('PS') ----> 4 from pylab import * 5 6 def f(t): /usr/lib/python2.5/site-packages/pylab.py in <module>() ----> 1 2 3 from matplotlib.pylab import * 4 import matplotlib.pylab 5 __doc__ = matplotlib.pylab.__doc__ /usr/lib/python2.5/site-packages/matplotlib/pylab.py in <module>() 201 from numpy import ma 202 --> 203 from matplotlib import mpl # pulls in most modules 204 205 # catch more than an import error here, since the src could fail too, /usr/lib/python2.5/site-packages/matplotlib/mpl.py in <module>() 1 ----> 2 from matplotlib import artist 3 from matplotlib import axis 4 from matplotlib import axes 5 from matplotlib import cbook 6 from matplotlib import collections /usr/lib/python2.5/site-packages/matplotlib/axis.py in <module>() 12 from ticker import NullLocator, FixedLocator, AutoLocator 13 ---> 14 from font_manager import FontProperties 15 from text import Text, TextWithDash 16 from transforms import Affine2D, Bbox, blended_transform_factory, \ /usr/lib/python2.5/site-packages/matplotlib/font_manager.py in <module>() 38 import matplotlib 39 from matplotlib import afm ---> 40 from matplotlib import ft2font 41 from matplotlib import rcParams, get_configdir 42 from matplotlib.cbook import is_string_like ImportError: /usr/lib/python2.5/site-packages/matplotlib/ft2font.so: undefined symbol: inflateReset My config is : ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.98pre python: 2.5.1 (r251:54863, Oct 30 2007, 13:54:11) [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] platform: linux2 REQUIRED DEPENDENCIES numpy: 1.1.0.dev5077 freetype2: 9.16.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.22 Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: 2.8.4.0 * WxAgg extension not required for wxPython >= 2.8 Gtk+: gtk+: 2.12.5, glib: 2.14.6, pygtk: 2.12.0, pygobject: 2.14.0 Qt: Qt: 3.3.8, PyQt: 3.17.4 Qt4: Qt: 4.3.3, PyQt4: 4.3.3 Cairo: 1.4.12 OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: matplotlib will provide OPTIONAL USETEX DEPENDENCIES dvipng: 1.5 ghostscript: 8.61 latex: 3.141592 EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES configobj: matplotlib will provide enthought.traits: matplotlib will provide best, Johann Johann Cohen-Tanugi wrote: > hmm, I did not use matplotlib recently, but looking at the library, I > would guess that I have the same issue : > [cohen@jarrett ~]$ ldd /usr/lib/python2.5/site-packages/matplotlib/ttconv.so > linux-gate.so.1 => (0x00110000) > libpython2.5.so.1.0 => /usr/lib/libpython2.5.so.1.0 (0x001c1000) > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00308000) > libm.so.6 => /lib/libm.so.6 (0x0011f000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00148000) > libpthread.so.0 => /lib/libpthread.so.0 (0x00154000) > libc.so.6 => /lib/libc.so.6 (0x003f3000) > libdl.so.2 => /lib/libdl.so.2 (0x0016d000) > libutil.so.1 => /lib/libutil.so.1 (0x00172000) > /lib/ld-linux.so.2 (0x001a4000) > [cohen@jarrett ~]$ nm > /usr/lib/python2.5/site-packages/matplotlib/ttconv.so | grep > _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE > U > _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE@@GLIBCXX_3.4 > > > Arthur M. Greene wrote: > >> Hello Matplotlib users, >> >> I'm having difficulty generating postscript, and receiving an error that >> I'm guessing reflects a version conflict, but I'm not sure exactly which >> version of what needs to be changed. If I generate a plot (backend is >> QtAGG, so I get a window), then click on the save button, I get a dialog >> saying: >> >> /path_to/matplotlib/ttconv.so: undefined symbol: >> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >> >> Alternatively, if I do >> >> import matplotlib; matplotlib.use('PS'); from pylab import * >> >> the result is as follows (essentially the same error): >> >> exceptions.ImportError >> Traceback (most recent call last) >> >> /home/amg/<ipython console> >> >> /home/amg/cdat4_1/lib/python2.4/site-packages/pylab.py >> ----> 1 from matplotlib.pylab import * >> 2 import matplotlib.pylab >> 3 __doc__ = matplotlib.pylab.__doc__ >> >> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pylab.py >> 290 >> 291 >> --> 292 from matplotlib.pyplot import * >> 293 >> 294 >> >> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pyplot.py >> 35 >> 36 from matplotlib.backends import pylab_setup >> ---> 37 new_figure_manager, draw_if_interactive, show = pylab_setup() >> 38 >> 39 def switch_backend(newbackend): >> >> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/__init__.py >> in pylab_setup() >> 22 backend_name = 'backend_'+backend.lower() >> 23 backend_mod = __import__('matplotlib.backends.'+backend_name, >> ---> 24 globals(),locals(),[backend_name]) >> 25 >> 26 # Things we pull in from all backends >> >> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py >> >> 22 from matplotlib.font_manager import findfont, >> is_opentype_cff_font >> 23 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT, >> LOAD_NO_HINTING >> ---> 24 from matplotlib.ttconv import convert_ttf_to_ps >> 25 from matplotlib.mathtext import MathTextParser >> 26 from matplotlib._mathtext_data import uni2type1 >> >> ImportError: >> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/ttconv.so: >> undefined symbol: _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE >> >> (The above backtrace is from iPython, but I get the same thing running >> from plain ol' Python.) >> >> Googling suggests that this might mean I have a version of Matplotlib >> that is too recent for the g++ compiler on my system, but I'm not really >> certain. I'm running as an unprivileged user on RHEL4, with most of the >> necessary libraries already present on the system. I've only had to add >> qt and PyQt, which are installed in my home directory, where Matplotlib >> can apparently find them. Version info is as follows: >> >> These are locally installed: >> Python 2.4 >> qt-3.3.8b >> PyQt-3.17.4 >> Matplotlib-0.91.2 >> >> The following were already present: >> Kernel: 2.6.9-67.0.1.ELsmp, on i686 >> glibc-2.3.4-2.39 >> gcc-3.4.6-9 >> tcl-8.4.7-2 >> tk-8.4.7-3.el4_6.1 >> freetype-2.1.9-6.el4 >> libpng-1.2.7-3.el4_5.1 >> zlib-1.2.1.2-1.2 >> ghostscript-7.07-33.2.el4_6.1 >> Output of 'gs --version': 8.50 >> >> I tried switching to qt4/PyQt4, but then ipython -pylab hangs... >> >> Not sure what other info to supply; suggestions appreciated. >> >> Thanks! >> >> Arthur >> >> ------------------------------- >> amg -at- iri -dot- columbia -dot- edu >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >> Don't miss this year's exciting event. There's still time to save 100ドル. >> Use priority code J8TL2D2. >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save 100ドル. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
I dont know if it is related, but I am actually failing an exemple : [cohen@jarrett matplotlib]$ ipython examples/pstest.py --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/cohen/data1/sources/python/matplotlib-svn/matplotlib/examples/pstest.py in <module>() 2 import matplotlib 3 matplotlib.use('PS') ----> 4 from pylab import * 5 6 def f(t): /usr/lib/python2.5/site-packages/pylab.py in <module>() ----> 1 2 3 from matplotlib.pylab import * 4 import matplotlib.pylab 5 __doc__ = matplotlib.pylab.__doc__ /usr/lib/python2.5/site-packages/matplotlib/pylab.py in <module>() 201 from numpy import ma 202 --> 203 from matplotlib import mpl # pulls in most modules 204 205 # catch more than an import error here, since the src could fail too, /usr/lib/python2.5/site-packages/matplotlib/mpl.py in <module>() 1 ----> 2 from matplotlib import artist 3 from matplotlib import axis 4 from matplotlib import axes 5 from matplotlib import cbook 6 from matplotlib import collections /usr/lib/python2.5/site-packages/matplotlib/axis.py in <module>() 12 from ticker import NullLocator, FixedLocator, AutoLocator 13 ---> 14 from font_manager import FontProperties 15 from text import Text, TextWithDash 16 from transforms import Affine2D, Bbox, blended_transform_factory, \ /usr/lib/python2.5/site-packages/matplotlib/font_manager.py in <module>() 38 import matplotlib 39 from matplotlib import afm ---> 40 from matplotlib import ft2font 41 from matplotlib import rcParams, get_configdir 42 from matplotlib.cbook import is_string_like ImportError: /usr/lib/python2.5/site-packages/matplotlib/ft2font.so: undefined symbol: inflateReset My config is : ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.98pre python: 2.5.1 (r251:54863, Oct 30 2007, 13:54:11) [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] platform: linux2 REQUIRED DEPENDENCIES numpy: 1.1.0.dev5077 freetype2: 9.16.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.22 Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: 2.8.4.0 * WxAgg extension not required for wxPython >= 2.8 Gtk+: gtk+: 2.12.5, glib: 2.14.6, pygtk: 2.12.0, pygobject: 2.14.0 Qt: Qt: 3.3.8, PyQt: 3.17.4 Qt4: Qt: 4.3.3, PyQt4: 4.3.3 Cairo: 1.4.12 OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: matplotlib will provide OPTIONAL USETEX DEPENDENCIES dvipng: 1.5 ghostscript: 8.61 latex: 3.141592 EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES configobj: matplotlib will provide enthought.traits: matplotlib will provide best, Johann
hmm, I did not use matplotlib recently, but looking at the library, I would guess that I have the same issue : [cohen@jarrett ~]$ ldd /usr/lib/python2.5/site-packages/matplotlib/ttconv.so linux-gate.so.1 => (0x00110000) libpython2.5.so.1.0 => /usr/lib/libpython2.5.so.1.0 (0x001c1000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00308000) libm.so.6 => /lib/libm.so.6 (0x0011f000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00148000) libpthread.so.0 => /lib/libpthread.so.0 (0x00154000) libc.so.6 => /lib/libc.so.6 (0x003f3000) libdl.so.2 => /lib/libdl.so.2 (0x0016d000) libutil.so.1 => /lib/libutil.so.1 (0x00172000) /lib/ld-linux.so.2 (0x001a4000) [cohen@jarrett ~]$ nm /usr/lib/python2.5/site-packages/matplotlib/ttconv.so | grep _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE U _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE@@GLIBCXX_3.4 Arthur M. Greene wrote: > Hello Matplotlib users, > > I'm having difficulty generating postscript, and receiving an error that > I'm guessing reflects a version conflict, but I'm not sure exactly which > version of what needs to be changed. If I generate a plot (backend is > QtAGG, so I get a window), then click on the save button, I get a dialog > saying: > > /path_to/matplotlib/ttconv.so: undefined symbol: > _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE > > Alternatively, if I do > > import matplotlib; matplotlib.use('PS'); from pylab import * > > the result is as follows (essentially the same error): > > exceptions.ImportError > Traceback (most recent call last) > > /home/amg/<ipython console> > > /home/amg/cdat4_1/lib/python2.4/site-packages/pylab.py > ----> 1 from matplotlib.pylab import * > 2 import matplotlib.pylab > 3 __doc__ = matplotlib.pylab.__doc__ > > /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pylab.py > 290 > 291 > --> 292 from matplotlib.pyplot import * > 293 > 294 > > /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pyplot.py > 35 > 36 from matplotlib.backends import pylab_setup > ---> 37 new_figure_manager, draw_if_interactive, show = pylab_setup() > 38 > 39 def switch_backend(newbackend): > > /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/__init__.py > in pylab_setup() > 22 backend_name = 'backend_'+backend.lower() > 23 backend_mod = __import__('matplotlib.backends.'+backend_name, > ---> 24 globals(),locals(),[backend_name]) > 25 > 26 # Things we pull in from all backends > > /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py > > 22 from matplotlib.font_manager import findfont, > is_opentype_cff_font > 23 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT, > LOAD_NO_HINTING > ---> 24 from matplotlib.ttconv import convert_ttf_to_ps > 25 from matplotlib.mathtext import MathTextParser > 26 from matplotlib._mathtext_data import uni2type1 > > ImportError: > /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/ttconv.so: > undefined symbol: _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE > > (The above backtrace is from iPython, but I get the same thing running > from plain ol' Python.) > > Googling suggests that this might mean I have a version of Matplotlib > that is too recent for the g++ compiler on my system, but I'm not really > certain. I'm running as an unprivileged user on RHEL4, with most of the > necessary libraries already present on the system. I've only had to add > qt and PyQt, which are installed in my home directory, where Matplotlib > can apparently find them. Version info is as follows: > > These are locally installed: > Python 2.4 > qt-3.3.8b > PyQt-3.17.4 > Matplotlib-0.91.2 > > The following were already present: > Kernel: 2.6.9-67.0.1.ELsmp, on i686 > glibc-2.3.4-2.39 > gcc-3.4.6-9 > tcl-8.4.7-2 > tk-8.4.7-3.el4_6.1 > freetype-2.1.9-6.el4 > libpng-1.2.7-3.el4_5.1 > zlib-1.2.1.2-1.2 > ghostscript-7.07-33.2.el4_6.1 > Output of 'gs --version': 8.50 > > I tried switching to qt4/PyQt4, but then ipython -pylab hangs... > > Not sure what other info to supply; suggestions appreciated. > > Thanks! > > Arthur > > ------------------------------- > amg -at- iri -dot- columbia -dot- edu > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save 100ドル. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Hello Matplotlib users, I'm having difficulty generating postscript, and receiving an error that I'm guessing reflects a version conflict, but I'm not sure exactly which version of what needs to be changed. If I generate a plot (backend is QtAGG, so I get a window), then click on the save button, I get a dialog saying: /path_to/matplotlib/ttconv.so: undefined symbol: _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE Alternatively, if I do import matplotlib; matplotlib.use('PS'); from pylab import * the result is as follows (essentially the same error): exceptions.ImportError Traceback (most recent call last) /home/amg/<ipython console> /home/amg/cdat4_1/lib/python2.4/site-packages/pylab.py ----> 1 from matplotlib.pylab import * 2 import matplotlib.pylab 3 __doc__ = matplotlib.pylab.__doc__ /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pylab.py 290 291 --> 292 from matplotlib.pyplot import * 293 294 /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pyplot.py 35 36 from matplotlib.backends import pylab_setup ---> 37 new_figure_manager, draw_if_interactive, show = pylab_setup() 38 39 def switch_backend(newbackend): /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/__init__.py in pylab_setup() 22 backend_name = 'backend_'+backend.lower() 23 backend_mod = __import__('matplotlib.backends.'+backend_name, ---> 24 globals(),locals(),[backend_name]) 25 26 # Things we pull in from all backends /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py 22 from matplotlib.font_manager import findfont, is_opentype_cff_font 23 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT, LOAD_NO_HINTING ---> 24 from matplotlib.ttconv import convert_ttf_to_ps 25 from matplotlib.mathtext import MathTextParser 26 from matplotlib._mathtext_data import uni2type1 ImportError: /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/ttconv.so: undefined symbol: _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE (The above backtrace is from iPython, but I get the same thing running from plain ol' Python.) Googling suggests that this might mean I have a version of Matplotlib that is too recent for the g++ compiler on my system, but I'm not really certain. I'm running as an unprivileged user on RHEL4, with most of the necessary libraries already present on the system. I've only had to add qt and PyQt, which are installed in my home directory, where Matplotlib can apparently find them. Version info is as follows: These are locally installed: Python 2.4 qt-3.3.8b PyQt-3.17.4 Matplotlib-0.91.2 The following were already present: Kernel: 2.6.9-67.0.1.ELsmp, on i686 glibc-2.3.4-2.39 gcc-3.4.6-9 tcl-8.4.7-2 tk-8.4.7-3.el4_6.1 freetype-2.1.9-6.el4 libpng-1.2.7-3.el4_5.1 zlib-1.2.1.2-1.2 ghostscript-7.07-33.2.el4_6.1 Output of 'gs --version': 8.50 I tried switching to qt4/PyQt4, but then ipython -pylab hangs... Not sure what other info to supply; suggestions appreciated. Thanks! Arthur ------------------------------- amg -at- iri -dot- columbia -dot- edu