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
|
From: John H. <jdh...@ac...> - 2004-11-29 15:55:41
|
I just created a new low traffic mailing list that carries announcements of interest to matplotlib users. It can include new releases, new documentation, projects that use matplotlib, tutorials, etc. https://lists.sourceforge.net/mailman/listinfo/matplotlib-announce I'll still always post announcements to this list, but if you just want the announcements w/o the extra traffic in your inbox from the users list, you may prefer to only subscribe to the announce list. JDH |
From: John H. <jdh...@ac...> - 2004-11-29 15:01:56
|
>>>>> "Jochen" == Jochen Voss <vo...@se...> writes: Jochen> Actually I think this is fixed in CVS, isn't it? I think so. In my cvs tree in setup.py, I have if BUILD_GTKAGG: try: import gtk except ImportError: print 'GTKAgg requires pygtk' BUILD_GTKAGG=0 except RuntimeError: print 'pygtk present but import failed' If X is not present, they get the runtime error, and in this case GTK will still build, right? But you'll still need X to run the GTK backend.... JDH |
From: John H. <jdh...@ac...> - 2004-11-29 14:57:25
|
>>>>> "Jos=E9" =3D=3D Jos=E9 Alexandre Nalon <na...@te...> writes: Jos=E9> Greetings! In a figure I'm generating, I need to plot a Jos=E9> function rotated 90 degrees counter-clockwise, so that Jos=E9> x-axis is vertical, and y-axis is horizontal (increasing Jos=E9> from right to left). I searched the documentation and the Jos=E9> examples and couldn't find how (what I tried didn't Jos=E9> work). Probably there is a simple way to do that, if Jos=E9> somebody can point that out, I would really appreciate. :) Perhaps you can be a little more specific about what you want to do. For a "plot", all you need to do is reverse the x and y arguments and place your xlabel and ylabel accordingly. =20 plot(y, x) I could probably give you more help if you describe what you need in addition this. For a bar chart, use barh. For printing, some backends (eg postscript) support landscape mode savefig(fname, orientation=3D'landscape'): JDH |
From: <na...@te...> - 2004-11-29 03:13:03
|
Greetings! In a figure I'm generating, I need to plot a function rotated 90 degrees counter-clockwise, so that x-axis is vertical, and y-axis is horizontal (increasing from right to left). I searched the documentation and the examples and couldn't find how (what I tried didn't work). Probably there is a simple way to do that, if somebody can point that out, I would really appreciate. :) Thanks in advance --- José Alexandre Nalon na...@te... |
From: Jochen V. <vo...@se...> - 2004-11-28 23:13:13
|
Hello, On Sun, Nov 28, 2004 at 10:22:09AM -0600, John Hunter wrote: > This is an annoying build issue that hopefully we'll resolve before > too long. I assume you are building from the Terminal shell is OSX. > You'll need build and run matplotlib from the X terminal Actually I think this is fixed in CVS, isn't it? All the best, Jochen --=20 http://seehuhn.de/ |
From: <rei...@gm...> - 2004-11-28 16:37:02
|
First of all, thanks for your help. I made several mistakes, which I fixed: I installed matplotlib as root =20= and from xterm. The installation process worked out fine,the output of >python setup.py build was TKAgg requires TkInter running build running build_py running build_ext which is ok, I think. At least it doesn't say "require pygtkg" anymore. =20= The >sudo python setup.py install ran without mistakes. BUT: When I start python, and I want to import matplotlib.matlab, this =20= happens: Python 2.3.4 (#2, Nov 14 2004, 18:39:27) [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib.matlab Could not load matplotlib icon: Couldn't recognize the image file =20 format for file =20 '/Library/Frameworks/Python.framework/Versions/2.3/share/matplotlib/=20 matplotlib.svg' Traceback (most recent call last): File "<stdin>", line 1, in ? File =20 "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-=20= packages/matplotlib/matlab.py", line 163, in ? from backends import new_figure_manager, error_msg, \ File =20 "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-=20= packages/matplotlib/backends/__init__.py", line 20, in ? globals(),locals(),[backend_name]) File =20 "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-=20= packages/matplotlib/backends/backend_gtkagg.py", line 16, in ? from _gtkagg import agg_to_gtk_drawable ImportError: No module named _gtkagg I thought, everything ist ok, when the installation is completed =20 successfully - obviously I am wrong. But what now? I am lost... Thanks for your help Reik Am 28.11.2004 um 17:22 schrieb John Hunter: >>>>>> "Reik" =3D=3D Reik H B=F6rger <rei...@gm...> writes: > > Reik> Hello, it's me again, I found my mistake, I specified the > Reik> wrong path when installing pygtk. But now, I have a problem > Reik> installing matplotlib. When I type > > Reik> python setup.py build > > Reik> it terminates with: > > Reik> Traceback (most recent call last): File "setup.py", line > Reik> 125, in ? try: import gtk File > Reik> =20 > "/Library/Frameworks/Python.framework/Versions/2.3//lib/python2.3/=20 > site- > Reik> packages/gtk-2.0/gtk/__init__.py", line 37, in ? from _gtk > Reik> import * RuntimeError: could not open display > > Reik> What is going wrong? I have no idea... Thanks Reik > > This is an annoying build issue that hopefully we'll resolve before > too long. I assume you are building from the Terminal shell is OSX. > You'll need build and run matplotlib from the X terminal > > http://www.apple.com/macosx/features/x11/ > > Hope this helps, > JDH > |
From: John H. <jdh...@ac...> - 2004-11-28 16:23:22
|
>>>>> "Reik" =3D=3D Reik H B=F6rger <rei...@gm...> writes: Reik> Hello, it's me again, I found my mistake, I specified the Reik> wrong path when installing pygtk. But now, I have a problem Reik> installing matplotlib. When I type Reik> python setup.py build Reik> it terminates with: Reik> Traceback (most recent call last): File "setup.py", line Reik> 125, in ? try: import gtk File Reik> "/Library/Frameworks/Python.framework/Versions/2.3//lib/python2= .3/site- Reik> packages/gtk-2.0/gtk/__init__.py", line 37, in ? from _gtk Reik> import * RuntimeError: could not open display Reik> What is going wrong? I have no idea... Thanks Reik This is an annoying build issue that hopefully we'll resolve before too long. I assume you are building from the Terminal shell is OSX. You'll need build and run matplotlib from the X terminal http://www.apple.com/macosx/features/x11/ Hope this helps, JDH |
From: <rei...@gm...> - 2004-11-28 13:56:08
|
Hello, it's me again, I found my mistake, I specified the wrong path when installing pygtk. But now, I have a problem installing matplotlib. When I type python setup.py build it terminates with: Traceback (most recent call last): File "setup.py", line 125, in ? try: import gtk File "/Library/Frameworks/Python.framework/Versions/2.3//lib/python2.3/site- packages/gtk-2.0/gtk/__init__.py", line 37, in ? from _gtk import * RuntimeError: could not open display What is going wrong? I have no idea... Thanks Reik > Hello everybody, > > I am new to this list and to the world of python, so I face some > questions, which are hopefully difficult to me only. > I use python2.3.4 and want to install matplotlib. I build all the > necessary packages (which were quite a lot) and finally, it seems to > work. > > import matplotlib does not produce any errors, though > import matplotlib.matlab does: > > No module named pygtk > PyGTK version 1.99.16 or greater is required to run the GTK Matplotlib > backends > > But I have installed pygtk in the version2.4.1 without any errors and > indeed > > import pygtk > > works without error. What am I doing wrong? I spend a lot of time to > come to this point, but now I am running out of ideas. Can anyone help > me? > Thanks > Reik > > ps: I tried to install wxPython in the first place, but the > make-command always terminates, because it has some problems with > finding files in .../mac/ogl/... something, so I decided to switch to > the GTK-backend... > > > > > --__--__-- > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > End of Matplotlib-users Digest > |
From: <rei...@gm...> - 2004-11-27 22:46:55
|
Hello everybody, I am new to this list and to the world of python, so I face some questions, which are hopefully difficult to me only. I use python2.3.4 and want to install matplotlib. I build all the necessary packages (which were quite a lot) and finally, it seems to work. import matplotlib does not produce any errors, though import matplotlib.matlab does: No module named pygtk PyGTK version 1.99.16 or greater is required to run the GTK Matplotlib backends But I have installed pygtk in the version2.4.1 without any errors and indeed import pygtk works without error. What am I doing wrong? I spend a lot of time to come to this point, but now I am running out of ideas. Can anyone help me? Thanks Reik ps: I tried to install wxPython in the first place, but the make-command always terminates, because it has some problems with finding files in .../mac/ogl/... something, so I decided to switch to the GTK-backend... |
From: Darren D. <dd...@co...> - 2004-11-27 02:23:45
|
On Friday 26 November 2004 12:04 pm, John Hunter wrote: > >>>>> "Jouni" =3D=3D Jouni K Sepp=E4nen <jk...@ik...> writes: > > Jouni> Hi, One thing that I really like about Matlab's handle > Jouni> graphics system is that it is self-documenting: if I do > Jouni> h=3Dplot(...), I can query the current values of all > Jouni> properties with get: > > This is a very useful feature in matplotlib. Thanks for your patch. > I ended up implementing this functionality, but using a different > approach than your query methods. =20 I updating from cvs now, I can't wait to try this out! I used this in Matla= b=20 all the time. =2D-=20 Darren |
From: John H. <jdh...@ac...> - 2004-11-26 17:05:27
|
>>>>> "Jouni" =3D=3D Jouni K Sepp=E4nen <jk...@ik...> writes: Jouni> Hi, One thing that I really like about Matlab's handle Jouni> graphics system is that it is self-documenting: if I do Jouni> h=3Dplot(...), I can query the current values of all Jouni> properties with get: This is a very useful feature in matplotlib. Thanks for your patch. I ended up implementing this functionality, but using a different approach than your query methods. Instead, I added formatted strings to the doc strings of each setter that describe what that function accepts, eg def set_linestyle(self, s): """ Set the linestyle of the line ACCEPTS: [ '-' | '--' | '-.' | ':' | 'steps' | 'None' ] """ set now parses this information and uses it to display the properties. In the CVS version of matplotlib, you can get this information, as in matlab, with # report accepts info on all properties set(line) # report accepts info on linestyle property set(line, 'linestyle') # print the value of all properties get(line) # print the value of the linestyle property get(line, 'linestyle') Very nice! See the files examples/set_and_get.py in CVS. Here is some sample output 1 >>> lines =3D plot([1,2,3]) 2 >>> set(lines) alpha: float antialiased or aa: [True | False] clip_box: a matplotlib.transform.Bbox instance clip_on: [True | False] color or c: any matplotlib color - see help(colors) dashes: sequence of on/off ink in points data: (array xdata, array ydata) data_clipping: [True | False] figure: a matplotlib.figure.Figure instance label: any string linestyle or ls: [ '-' | '--' | '-.' | ':' | 'steps' | 'None' ] linewidth or lw: float lod: [True | False] marker: [ '+' | ',' | '.' | '1' | '2' | '3' | '4' | '<' | '>' | 'D' | 'H' | '^' | '_' | 'd' | 'h' | 'o' | 'p' | 's' | 'v' | 'x' | '|' ] markeredgecolor or mec: any matplotlib color - see help(colors) markeredgewidth or mew: float markerfacecolor or mfc: any matplotlib color - see help(colors) markersize or ms: float transform: a matplotlib.transform transformation instance vertical_offset: DEPRECATED visible: [True | False] xclip: (xmin, xmax) xdata: array yclip: (ymin, ymax) ydata: array 3 >>> . Thanks for the suggestion! JDH |
From: John H. <jdh...@ac...> - 2004-11-26 16:59:46
|
>>>>> "Transier," == Transier, Frederik <fre...@sa...> writes: Frederik> Hello, while I was trying to build the matplotlib 0.64 Frederik> with python 2.4 on my win xp machine Frederik> a lot of errors occurred. Has anyone managed to install Frederik> it under these conditions? Frederik> Or is there any location I can download the binaries Frederik> for python 2.4 and win xp? Frederik> Any help would be appreciated. Building on windows is a pain. I'll try to include a python2.4rc1 installer with the next release, possibly next week. If you need something sooner, you'll have to post some more information to the list. Have you read the instructions for building win32 in setupext.py, and downloaded the win32_static file from the matplotlib web site that is pointed to in setupext? JDH |
From: John H. <jdh...@ac...> - 2004-11-26 16:57:29
|
>>>>> "Darrell" == Darrell Silver <da...@cl...> writes: Darrell> Hi, first time user, first time installer... Darrell> Is there a howto for matplotlib installation on redhat Darrell> 7.3/as2.1 & as3.0? Darrell> I'm trying to install matplotlib on these platforms and Darrell> am running into a seemingly endless list of dependancies Darrell> for python2.2, numarray: Darrell> just on the 7.3 side, - freetype >= 2.1.7 is needed, but Darrell> rh has 2.0.9-2. - pygtk >= 1.99.16 needed, rh has Darrell> 1.99.8-7. - pygtk 2.2.0 needs glib >= 2.2.0, redhat has Darrell> 1.2.10-5, - pygtk 1.99.16 compiles, but I get error Darrell> "ImportError: /usr/lib/libpangoxft-1.0.so.0 undefinded Darrell> symbol: FT_Seek_Stream", which I haven't tracked down Darrell> just yet... - the line "inf = infty = Infinity = Darrell> _ieee.inf" in na_imports.py fails to find 'inf' in Darrell> '_ieee', but commenting it out works fine. - While the Darrell> install webpage says I only need freetype,libpng,zlib to Darrell> compile, I get runtime complaints on import of Darrell> matplotlib.matlab * (running simple_plot.py) about Darrell> missing image libraries if I don't turn the BUILD_IMAGE Darrell> flag on. I have compiled matplotlib on 7.3 but it's been a while. Rather than upgrading to the latest pygtk, which will require a major upgrade of all your gtk libs and their dependencies, try getting pygtk-1.99.16. Since you already have pygtk-1.99.x, I think you should be able to compile this. And install freetype 2.1.7 or later, and numarray 1.1 or later, and try again. With luck, with these packages you'll get much farther. I suggest you try to compile pygtk with --enable-thread and --enable-numpy When building matplotlib, set the following in setup.py BUILD_IMAGE = 1 BUILD_AGG = 1 BUILD_GTKAGG = 1 BUILD_TKAGG = 0 BUILD_WINDOWING = 0 If you can't build, please post the build output to the list and we'll take it from there. Good luck! JDH Darrell> This is all way too difficult me as I'm not looking Darrell> forward to upgrading so many packages across our Darrell> production machines...am I missing something obvious? Darrell> Perhaps an older version of matplotlib known to work on Darrell> this redhat? I'm just using it for simple time-series Darrell> plots, real-time and to some file (png, gif, ps, pdf...). Darrell> thanks in advance for any help, Darrell> Darrell Darrell> ------------------------------------------------------- Darrell> SF email is sponsored by - The IT Product Guide Read Darrell> honest & candid reviews on hundreds of IT Products from Darrell> real users. Discover which products truly live up to the Darrell> hype. Start reading Darrell> now. http://productguide.itmanagersjournal.com/ Darrell> _______________________________________________ Darrell> Matplotlib-users mailing list Darrell> Mat...@li... Darrell> https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: John H. <jdh...@ac...> - 2004-11-26 16:49:19
|
>>>>> "christophe" == christophe grimault <chr...@no...> writes: christophe> The import of the numeric version of the _transforms christophe> module, _nc_transforms, failed. This is either christophe> because numeric was unavailable when matplotlib was christophe> compiled, or because a dependency of _nc_transforms christophe> could not be satisfied. If it appears that christophe> _nc_transforms was not built, make sure you have a christophe> working copy of numeric and then re-install christophe> matplotlib. Otherwise, the following traceback gives christophe> more details: Try rm -rf ing your build directory and your site-packages/matplotlib directory and do a clean rebuild and reinstall. We've seen a lot of problems not too different from yours when installing recent versions of matplotlib over older versions. If you're still encountering troubles, post back and we'll try something different. christophe> ImportError: christophe> /usr/local/lib/python2.3/site-packages/matplotlib/_nc_transforms.so: christophe> undefined symbol: _ZNSs4_Rep20_S_empty_rep_storageE This is a linker error, I don't think changing your include paths will help. christophe> I tried many things in the setupext.py. Freetype is christophe> correctly installed and Numeric is in christophe> /opt/Numeric23.1. I added this to the christophe> script.... because the way it appends include/lib path christophe> seems a little buggy to me. christophe> I also tried other things. I still get the same error christophe> message. I'm stuck ! Has anyone encoutered this christophe> problem ? solved it ? Shall i install a newer version christophe> of Numeric ? In an other place than /opt ? matplotlib certainly works with Numeric 23.1. I would advise you to upgrade to the latest Numeric because many bugs have been fixed since 23.1, but it won't stop matplotlib from working. JDH |
From: John H. <jdh...@ac...> - 2004-11-26 16:43:16
|
>>>>> "Daniel" == Daniel Newton <da...@ne...> writes: Daniel> Hi, I am trying to make a legend transparent (using Daniel> GTKAgg) as sometimes it is quite big an obscures part of Daniel> my graphs. Daniel> I have tryed this with no luck: l = figure.legend(lines, Daniel> names, legend) l.set_alpha(.5) Daniel> is this possible? Is it the entire legend you want to make transparent, or simply the rectangular background? For the latter, you need to set the alpha on the legend "frame". You have two options here leg = legend(blah, blah) leg.draw_frame(False) # turn it off entirely or frame = leg.get_frame() frame.set_alpha(0.5) # make it semi-transparent See http://matplotlib.sf.net/examples/legend_demo.py for an example of getting handles to all the lines, patches and texts in the legend, whose properties you can set independently. There has been a discussion on whether it would be desirable for a set call on an object to propagate to all the objects it contains. Ie, would it be a good thing to be able to do set(leg, alpha=0.5) and have this propogate to the legend frame, lones, patches, and text instances. Or is the current setup where you control each of these objects independently preferable? JDH |
From: christophe g. <chr...@no...> - 2004-11-26 09:31:27
|
Hi all, I've successfully used version 0.52. Yesterday I installed v0.64 on my RH9 linux box. The build and install went OK. However, when I try to play with it, I get: The import of the numeric version of the _transforms module, _nc_transforms, failed. This is either because numeric was unavailable when matplotlib was compiled, or because a dependency of _nc_transforms could not be satisfied. If it appears that _nc_transforms was not built, make sure you have a working copy of numeric and then re-install matplotlib. Otherwise, the following traceback gives more details: Traceback (most recent call last): .... from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas File "/usr/local/lib/python2.3/site-packages/matplotlib/backends/__init__.py", line 20, in ? globals(),locals(),[backend_name]) File "/usr/local/lib/python2.3/site-packages/matplotlib/backends/backend_wxagg.py", line 18, in ? from backend_agg import FigureCanvasAgg File "/usr/local/lib/python2.3/site-packages/matplotlib/backends/backend_agg.py", line 78, in ? from matplotlib.backend_bases import RendererBase,\ File "/usr/local/lib/python2.3/site-packages/matplotlib/backend_bases.py", line 13, in ? from patches import Rectangle File "/usr/local/lib/python2.3/site-packages/matplotlib/patches.py", line 5, in ? from artist import Artist File "/usr/local/lib/python2.3/site-packages/matplotlib/artist.py", line 4, in ? from transforms import identity_transform File "/usr/local/lib/python2.3/site-packages/matplotlib/transforms.py", line 188, in ? from _transforms import Value, Point, Interval, Bbox, Affine File "/usr/local/lib/python2.3/site-packages/matplotlib/_transforms.py", line 11, in ? from matplotlib._nc_transforms import * ImportError: /usr/local/lib/python2.3/site-packages/matplotlib/_nc_transforms.so: undefined symbol: _ZNSs4_Rep20_S_empty_rep_storageE I tried many things in the setupext.py. Freetype is correctly installed and Numeric is in /opt/Numeric23.1. I added this to the script.... because the way it appends include/lib path seems a little buggy to me. def add_ft2font_flags(module): 'Add the module flags to build extensions which use gd' .... module.include_dirs.append('/usr/local/include/freetype2/freetype') .... and def add_agg_flags(module): 'Add the module flags to build extensions which use agg' # before adding the freetype flags since -z comes later module.libraries.append('png') module.libraries.append('z') add_base_flags(module) module.include_dirs.extend(['src','agg22/include', '.']) module.include_dirs.append('/opt/Numeric-23.1/Include') # put these later for correct link order module.libraries.extend(['stdc++', 'm']) I also tried other things. I still get the same error message. I'm stuck ! Has anyone encoutered this problem ? solved it ? Shall i install a newer version of Numeric ? In an other place than /opt ? Any help would be geatly appreciated ! Christophe |
From: Daniel N. <da...@ne...> - 2004-11-26 02:45:51
|
Hi, I am trying to make a legend transparent (using GTKAgg) as sometimes it is quite big an obscures part of my graphs. I have tryed this with no luck: l = figure.legend(lines, names, legend) l.set_alpha(.5) is this possible? Thanks Dan |
From: Darrell S. <da...@cl...> - 2004-11-23 20:11:58
|
Hi, first time user, first time installer... Is there a howto for matplotlib installation on redhat 7.3/as2.1 & as3.0? I'm trying to install matplotlib on these platforms and am running into a seemingly endless list of dependancies for python2.2, numarray: just on the 7.3 side, - freetype >= 2.1.7 is needed, but rh has 2.0.9-2. - pygtk >= 1.99.16 needed, rh has 1.99.8-7. - pygtk 2.2.0 needs glib >= 2.2.0, redhat has 1.2.10-5, - pygtk 1.99.16 compiles, but I get error "ImportError: /usr/lib/libpangoxft-1.0.so.0 undefinded symbol: FT_Seek_Stream", which I haven't tracked down just yet... - the line "inf = infty = Infinity = _ieee.inf" in na_imports.py fails to find 'inf' in '_ieee', but commenting it out works fine. - While the install webpage says I only need freetype,libpng,zlib to compile, I get runtime complaints on import of matplotlib.matlab * (running simple_plot.py) about missing image libraries if I don't turn the BUILD_IMAGE flag on. This is all way too difficult me as I'm not looking forward to upgrading so many packages across our production machines...am I missing something obvious? Perhaps an older version of matplotlib known to work on this redhat? I'm just using it for simple time-series plots, real-time and to some file (png, gif, ps, pdf...). thanks in advance for any help, Darrell |
From: John H. <jdh...@ac...> - 2004-11-23 15:34:32
|
>>>>> "Jeremy" == Jeremy Sanders <js...@as...> writes: Jeremy> Hi - I installed matplotlib into an alternative directory Jeremy> (using --home=/usr/local/python/python-2.3-FC2). Jeremy> I edited my .matplotlibrc file to set the data directory Jeremy> to /usr/local/python/python-2.3-FC2/share/matplotlib, but Jeremy> it doesn't seem to work: I assume /usr/local/python/python-2.3-FC2/share/matplotlib exists and contains, for example, the *.ttf, *.afm, etc files ? Are you sure the rc file you are editing is being found and loaded. Where are you placing the rc file? The search order for rc is * current working dir * environ var MATPLOTLIBRC * HOME/.matplotlibrc * MATPLOTLIBDATA/.matplotlibrc Jeremy> (BTW the bottom appears to be a bug - report_error should Jeremy> be given 3 arguments) Yes, this is fixed in CVS, thanks. Jeremy> I've also tried specifiying the Jeremy> /usr/local/python/python-2.3-FC2/ and Jeremy> /usr/local/python/python-2.3-FC2/share, but neither work. Jeremy> Is there any reason why the location of the data directory Jeremy> can't be put into matplotlib when it is installed? This Jeremy> would be much more convenient. It would also be nice if Jeremy> matplotlib can find the location of .matplotlibrc if there Jeremy> isn't one in the user's directory. When sing an alternate Jeremy> installation directory, it can't find one at the moment. Sorry for all your troubles. There are a couple of additional hints that may help you get your environment configured properly. First, run a test script, eg examples/simple_plot.py with the --verbose-helpful flag. This will give you information at runtime about what resources matplotlib is loading, eg what data path matplotlib is using, what rc file etc. As indicated above, there are two additional things you can do to help matplotlib find it's data files. One, you can place an rc file in your working directory if you don't want to use a home directory for it. Secondly, you can set the environment variable MATPLOTLIBDATA as described at http://matplotlib.sourceforge.net/installing.html. Hopefully with some combination of the extra ways to point matplotlib to its data files and the extra diagnostic information from the verbose flag, you can get this working. Assuming /usr/local/python/python-2.3-FC2/share/matplotlib exists and contains the files you referred to above, this is the dir that you would set MATPLOTLIBDATA to point to. If you find the magic combination, please post or for future googlers. Or if you have any suggestions for documentation improvement let me know. JDH |
From: Jeremy S. <js...@as...> - 2004-11-23 15:06:26
|
Hi - I installed matplotlib into an alternative directory (using --home=/usr/local/python/python-2.3-FC2). I edited my .matplotlibrc file to set the data directory to /usr/local/python/python-2.3-FC2/share/matplotlib, but it doesn't seem to work: File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/backends/__init__.py", line 20, in ? globals(),locals(),[backend_name]) File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/backends/backend_gtkagg.py", line 9, in ? from matplotlib.figure import Figure File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/figure.py", line 3, in ? from axes import Axes, Subplot, PolarSubplot, PolarAxes File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/axes.py", line 10, in ? from axis import XAxis, YAxis File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/axis.py", line 20, in ? from font_manager import FontProperties File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/font_manager.py", line 942, in ? fontManager = FontManager() File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/font_manager.py", line 791, in __init__ rebuild() File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/font_manager.py", line 779, in rebuild self.ttfdict = createFontDict(self.ttffiles) File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/font_manager.py", line 411, in createFontDict verbose.report_error("Could not open font file", fpath) TypeError: report_error() takes exactly 2 arguments (3 given) (BTW the bottom appears to be a bug - report_error should be given 3 arguments) I've also tried specifiying the /usr/local/python/python-2.3-FC2/ and /usr/local/python/python-2.3-FC2/share, but neither work. Is there any reason why the location of the data directory can't be put into matplotlib when it is installed? This would be much more convenient. It would also be nice if matplotlib can find the location of .matplotlibrc if there isn't one in the user's directory. When sing an alternate installation directory, it can't find one at the moment. Jeremy -- Jeremy Sanders <js...@as...> http://www-xray.ast.cam.ac.uk/~jss/ X-Ray Group, Institute of Astronomy, University of Cambridge, UK. Public Key Server PGP Key ID: E1AAE053 |
From: Transier, F. <fre...@sa...> - 2004-11-23 14:40:29
|
Hello, while I was trying to build the matplotlib 0.64 with python 2.4 on my win xp machine a lot of errors occurred. Has anyone managed to install it under these conditions? Or is there any location I can download the binaries for python 2.4 and win xp? Any help would be appreciated. Thanks, Frederik |
From: Todd M. <jm...@st...> - 2004-11-22 19:01:45
|
On Mon, 2004-11-22 at 13:48, John Hunter wrote: > >>>>> "Gary" == Gary <pa...@in...> writes: > > Gary> This application has requested the Runtime to terminate it > Gary> in an unusual way. Please contact the application's support > Gary> team for more information. > > Gary> C:\Python23\Lib\site-packages\matplotlib\examples> > > Hi Gary, the good news is that I could replicate the bug on XP and the > better news is that I could fix it :-) I looked at this but couldn't solve it... way to go John! Cheers, Todd |
From: John H. <jdh...@ac...> - 2004-11-22 18:49:36
|
>>>>> "Gary" == Gary <pa...@in...> writes: Gary> This application has requested the Runtime to terminate it Gary> in an unusual way. Please contact the application's support Gary> team for more information. Gary> C:\Python23\Lib\site-packages\matplotlib\examples> Hi Gary, the good news is that I could replicate the bug on XP and the better news is that I could fix it :-) It looks like a bug in the anim_tk script and not in matplotlib proper. Basically, anim_tk never calls the tk mainloop. Why this works under linux and not windows is not clear to me. The trick is to start the tk mainloop and use the tk after handler to run a command after x milliseconds. So I rewrote the example to do the animation in a loop, and used the after command to start this function after the mainloop is launched. If you have any additional trouble, you may want to try turning off tk.window_focus : False # Maintain shell focus for TkAgg in your rc file. Hope this helps! JDH #!/usr/bin/env python2.3 import matplotlib matplotlib.use('TkAgg') import matplotlib.matlab #import Tkinter as Tk import matplotlib.numerix as numerix fig = matplotlib.matlab.figure(1) ind = numerix.arange(60) x_tmp=[] for i in range(100): x_tmp.append(numerix.sin((ind+i)*numerix.pi/15.0)) X=numerix.array(x_tmp) lines = matplotlib.matlab.plot(X[:,0],'o') manager = matplotlib.matlab.get_current_fig_manager() def updatefig(*args): updatefig.count += 1 lines[0].set_ydata(X[:,updatefig.count%60]) manager.canvas.draw() return updatefig.count updatefig.count=-1 def run(*args): import time tstart = time.time() while 1: cnt = updatefig() if cnt==100: break print 'elapsed', 100.0/(time.time() - tstart) import Tkinter as Tk manager.window.after(10, run) manager.show() Tk.mainloop() |
From: Gary <pa...@in...> - 2004-11-22 18:12:03
|
John Hunter wrote: >>>>>>"Gary" == Gary <pa...@in...> writes: >>>>>> >>>>>> > > Gary> Thanks ... so it's either me or WinXP. I gave it a try on > Gary> my other WinXP machine. Same thing. No dice. > > Gary> Can someone confirm that anim_tk.py runs (or doesn't) on > Gary> WinXP / matplotlib 0.64 ?? > >I can't test this under windows XP right now (I can tomorrow). But >how are you running your script (double clicknig, from a shell, from >within an IDE? > >What does > > c:> python anim_tk.py --verbose-helpful report? > >I searched the matplotlib-users archives at >http://sourceforge.net/mailarchive/forum.php?forum_id=33405 for >PyEval_RestoreThread. This has cropped up a few times before on >windows (including a September post from you also on anim_tk which did >not appear to be resolved). > >My usual first guess when people get this message is that they are >trying to run matplotlib from within a GUI IDE and are getting an IDE >conflict, which is why I asked you to test from the command shell. >Let me know the results of the tests above, because I'd like to track >this one down. > >JDH > > > John, No IDE or double clicks. Straight from the command line. C:\Python23\Lib\site-packages\matplotlib\examples>python anim_tk.py --verbose-helpful matplotlib data path C:\PYTHON23\share\matplotlib loaded rc file C:\PYTHON23\share\matplotlib\.matplotlibrc matplotlib version 0.64 verbose.level helpful interactive is False numerix Numeric 23.0 font search path ['C:\\PYTHON23\\share\\matplotlib'] loaded ttfcache file C:\Documents and Settings\Gary\.ttffont.cache matplotlib data path C:\PYTHON23\share\matplotlib loaded rc file C:\PYTHON23\share\matplotlib\.matplotlibrc matplotlib version 0.64 verbose.level helpful interactive is False backend TkAgg version 8.4 elapsed 6.0779188952 Fatal Python error: PyEval_RestoreThread: NULL tstate This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. C:\Python23\Lib\site-packages\matplotlib\examples> |
From: John H. <jdh...@ac...> - 2004-11-22 00:46:43
|
>>>>> "Gary" == Gary <pa...@in...> writes: Gary> Thanks ... so it's either me or WinXP. I gave it a try on Gary> my other WinXP machine. Same thing. No dice. Gary> Can someone confirm that anim_tk.py runs (or doesn't) on Gary> WinXP / matplotlib 0.64 ?? I can't test this under windows XP right now (I can tomorrow). But how are you running your script (double clicknig, from a shell, from within an IDE? What does c:> python anim_tk.py --verbose-helpful report? I searched the matplotlib-users archives at http://sourceforge.net/mailarchive/forum.php?forum_id=33405 for PyEval_RestoreThread. This has cropped up a few times before on windows (including a September post from you also on anim_tk which did not appear to be resolved). My usual first guess when people get this message is that they are trying to run matplotlib from within a GUI IDE and are getting an IDE conflict, which is why I asked you to test from the command shell. Let me know the results of the tests above, because I'd like to track this one down. JDH |