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 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
Hi, Thank you for pointing that out, that does indeed do what I want mostly. However, while the data is autoscaled to the plot, the values on the y axis are not updated and they remain at their original values. I suspect this is because I am not giving a command to redraw the axes. How would I go about doing that? I think I need to blit a larger bbox that encompasses the axes as well, but I'm not sure how to get that. By the way, I found that self.ax1.autoscale_view(scalex=False, scaley = True) seems to autoscale just the y axis and seems clearer than the set_ylim code suggested below. Thanks again, Glenn On 4/26/08, John Hunter <jd...@gm...> wrote: > On Fri, Apr 25, 2008 at 1:19 AM, G Jones <gle...@gm...> wrote: > > Hello, > > Thank you for the suggestion. However, I am refering to the > > canvas.restore_region, draw_artist, blit, gui_repaint sort of > > animation. > > Glenn > > > His suggestion is still correct -- after you update the line data and > before you call draw_artist, you can acll relim and autoscale_view as > Mattias suggested. However, this will not always do what you want, > because it will autoscale both the x and the y. In animated plots, > often you are just updating the ydata an want to manually control the > xlim and autoscale the ylim (eg strip charting). In that case, I > would do : > > self.ax1.relim() > self.ax1.set_ylim(*self.ax1.yaxis.major.locator.autoscale()) > > JDH >