Re: [Matplotlib-users] 3D curve and errors in axes3d
belinda thom wrote: Thanks Eric! I'm kind of afraid to upgrade to the SVN version b/c I fear something else might break (I've yet to install matplotlib from source b/c of a few nagging Mac OS X issues). What would you recommend? I don't know; I see from your earlier message that Tim Leslie says some of the things you are trying to do are still broken, and his patches are what John committed, so svn is certainly no better than what Tim is working with now. I don't think that anything has changed since 0.90 in such a way as to require changing both the compiled parts and the pure python parts, so you could try simply replacing the pure python part. There's also the issue of having to upgrade student machines for which I'm not admin. Grrr. That certainly makes the prospect of doing any kind of upgrade less attractive. I don't have a good solution. --b On Apr 11, 2007, at 6:19 PM, Eric Firing wrote: Belinda, John has checked in some fixes for axes3d recently, and your test code now runs with the version in svn--except for the problem that you should use P.show() only once in a given script. (I think there is some backend for which you can get away with using it more than once, but this is not good practice.) Eric belinda thom wrote: On Apr 11, 2007, at 4:47 PM, belinda thom wrote: Hi, I'm replying to this older thread http://www.mail-archive.com/[EMAIL PROTECTED]/ msg02100.html because it relates very much to my recent problem, posted at http:// www.mail-archive.com/[EMAIL PROTECTED]/ msg03037.html. This problem seems more general than just the two circumstances you mentioned. I'm finding the problem w/any use plot3D in matplotlib.axes3d, e.g.: FYI: It also is a problem when using plot3d --b - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Compiling on AIX 5.3
I'm trying to compile matplotlib under AIX 5.3 (I've installed ActivePython), here is what I get: /usr/local/python2.5/config/ld_so_aix cc_r -bI:/usr/local/python2.5/config/python.exp build/temp.aix-5.3-2.5/src/agg.o build/temp.aix-5.3-2.5/agg23/src/agg_trans_affine.o build/temp.aix-5.3-2.5/agg23/src/agg_path_storage.o build/temp.aix-5.3-2.5/agg23/src/agg_bezier_arc.o build/temp.aix-5.3-2.5/agg23/src/agg_vcgen_dash.o build/temp.aix-5.3-2.5/agg23/src/agg_vcgen_stroke.o build/temp.aix-5.3-2.5/agg23/src/agg_rasterizer_scanline_aa.o build/temp.aix-5.3-2.5/agg23/src/agg_curves.o -lstdc++ -lm -o build/lib.aix-5.3-2.5/matplotlib/_agg.so ld: 0706-006 Cannot find or open library file: -l stdc++ ld:open(): No such file or directory building 'matplotlib._na_transforms' extension creating build/temp.aix-5.3-2.5/CXX cc_r -DNDEBUG -O -Isrc -I. -I/opt/freeware/include -I/Produits/publics/powerpc.AIX.5.3/include -I/Produits/publics/powerpc.AIX.5.3/gcc/3.1/include -I. -I/usr/local/include/python2.5 -c src/_na_transforms.cpp -o build/temp.aix-5.3-2.5/src/_na_transforms.o -DNUMARRAY=1 ./CXX/Objects.hxx, line 1436.100: 1540-0140 (S) The text is unexpected. SeqBaseT::iterator may be undeclared, ambiguous, or may require typename qualification. I've got libstd++.a and libstdc++.la in /Produits/publics/powerpc.AIX.5.3/gcc/3.1/include Setting CXX to g++ doesn't help : g++ cc_r -bI:/usr/local/lib/python2.5/config/python.exp build/temp.aix-5.3-2.5/src/agg.o build/temp.aix-5.3-2.5/agg23/src/agg_trans_affine.o build/temp.aix-5.3-2.5/agg23/src/agg_path_storage.o build/temp.aix-5.3-2.5/agg23/src/agg_bezier_arc.o build/temp.aix-5.3-2.5/agg23/src/agg_vcgen_dash.o build/temp.aix-5.3-2.5/agg23/src/agg_vcgen_stroke.o build/temp.aix-5.3-2.5/agg23/src/agg_rasterizer_scanline_aa.o build/temp.aix-5.3-2.5/agg23/src/agg_curves.o -lstdc++ -lm -o build/lib.aix-5.3-2.5/matplotlib/_agg.so g++: cc_r: No such file or directory error: command 'g++' failed with exit status 1 Is there any other way to select the c++ compiler? Because setting the CXX variable doesn't seem to work. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Basemap 3D
Hi all, not sure it's possible, I can't find any example but I ask : is there a way to make some 3D maps with Basemap, like we can do with ArcScene (ESRI), mixing rasters or shapefiles with TINs? If no, do you know a way to do so with python? Thanks -- Lionel Roubeyrie - [EMAIL PROTECTED] Chagé d'études et de maintenance LIMAIR - la Surveillance de l'Air en Limousin http://www.limair.asso.fr - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib 0.90.0 on OS-X with wxPython2.8.3
Do I need to manually remove _wxagg.so in order to use the new packages? Thanks Chris! -stephen On 4/11/07, Christopher Barker [EMAIL PROTECTED] wrote: Hi all, I've got the MPL 0.90.0 installer on pythonmac working OK with: Python2.5 wxPython2.8.3 I accomplished this by removing: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_wxagg.so Which disables the accelerator that doesn't work with wxPython 2.8 What we really need to do is get Ken's changes into a release, but I have my immediate needs met. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Basemap 3D
Lionel Roubeyrie wrote: Hi all, not sure it's possible, I can't find any example but I ask : is there a way to make some 3D maps with Basemap, like we can do with ArcScene (ESRI), mixing rasters or shapefiles with TINs? If no, do you know a way to do so with python? Thanks Lionel: I don't know, but I honestly doubt it. Matplotlib is fundamentally a 2-D package, there is a bit of mostly unsupported 3-D stuff that has been bolted on. Can you be more specific about what you mean though? Perhaps a link to an example? I have had good luck with ncvtk (http://ncvtk.sourceforge.net/), but I think it only really works if your data is global and in a netCDF file. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX: (303)497-6449 NOAA/OAR/PSD R/PSD1Email : [EMAIL PROTECTED] 325 BroadwayOffice : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web: http://tinyurl.com/5telg - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Compiling on AIX 5.3
I've found a way to configure my compiler. After setting CC=gcc I was able to complete the compilation. But when I test it : python anim.py The import of the numpy version of the _transforms module, _ns_transforms, failed. This is is either because numpy was unavailable when matplotlib was compiled, because a dependency of _ns_transforms could not be satisfied, or because the build flag for this module was turned off in setup.py. If it appears that _ns_transforms was not built, make sure you have a working copy of numpy and then re-install matplotlib. Otherwise, the following traceback gives more details: Traceback (most recent call last): File anim.py, line 19, in module import pylab as p File /Produits/tmp/rla/AIX/lib/python2.5/site-packages/pylab.py, line 1, in module from matplotlib.pylab import * File /Produits/tmp/rla/AIX/lib/python2.5/site-packages/matplotlib/pylab.py, line 203, in module from axes import Axes, PolarAxes File /Produits/tmp/rla/AIX/lib/python2.5/site-packages/matplotlib/axes.py, line 14, in module import artist File /Produits/tmp/rla/AIX/lib/python2.5/site-packages/matplotlib/artist.py , line 4, in module from transforms import identity_transform File /Produits/tmp/rla/AIX/lib/python2.5/site-packages/matplotlib/transforms .py, line 223, in module from _transforms import Value, Point, Interval, Bbox, Affine File /Produits/tmp/rla/AIX/lib/python2.5/site-packages/matplotlib/_transform s.py, line 17, in module from matplotlib._ns_transforms import * ImportError: No module named _ns_transforms Of course, I have numpy installed and tested. During the compilation, I get this error (using gcc-4.1.1): /usr/local/lib/python2.5/config/ld_so_aix cc_r -bI:/usr/local/lib/python2.5/config/python.exp build/temp.aix-5.3-2.5/src/_na_transforms.o build/temp.aix-5.3-2.5/src/mplutils.o build/temp.aix-5.3-2.5/CXX/IndirectPythonInterface.o build/temp.aix-5.3-2.5/CXX/cxx_extensions.o build/temp.aix-5.3-2.5/CXX/cxxsupport.o build/temp.aix-5.3-2.5/CXX/cxxextensions.o -L/usr/local/lib -L/opt/freeware/lib -L/Produits/publics/powerpc.AIX.5.3/lib -L/Produits/publics/powerpc.AIX.5.3/gcc/3.1/lib -L/Produits/publics/powerpc.AIX.5.2/zlib/1.1.4/lib -L/Produits/tmp/JL/AIX-5.2/TestInstall/lib -lstdc++ -lm -o build/lib.aix-5.3-2.5/matplotlib/_na_transforms.so ld: 0711-317 ERROR: Undefined symbol: _ZTISt9exception ld: 0711-317 ERROR: Undefined symbol: ._Unwind_Resume ld: 0711-317 ERROR: Undefined symbol: ._ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_ ld: 0711-317 ERROR: Undefined symbol: ._ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base ld: 0711-317 ERROR: Undefined symbol: ._ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base ld: 0711-317 ERROR: Undefined symbol: _ZNSs4_Rep20_S_empty_rep_storageE ld: 0711-317 ERROR: Undefined symbol: ._ZN9__gnu_cxx18__exchange_and_addEPVii ld: 0711-317 ERROR: Undefined symbol: _ZTISt11logic_error ld: 0711-317 ERROR: Undefined symbol: .__cxa_guard_acquire ld: 0711-317 ERROR: Undefined symbol: .__cxa_guard_release ld: 0711-317 ERROR: Undefined symbol: .__cxa_guard_abort ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. building 'matplotlib._ns_transforms' extension - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib 0.90.0 on OS-X with wxPython2.8.3
Stephen Uhlhorn wrote: Do I need to manually remove _wxagg.so in order to use the new packages? if you want to use them with wxPython 2.8.*, yes. They *should* work with 2.6.*, with _wxagg.so, but I haven't tested that. This should all be better with the next release. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib and py2exe
On 2007-04-01, Werner F. Bruhin [EMAIL PROTECTED] wrote: Hi Archana, Sometimes py2exe can't figure out what needs to be included. In these cases one creates entries in the packages section to force the inclusion of one or multiple packages. Archana Ganesan wrote: Hi all, ... options = {py2exe: {compressed: 1, optimize: 2, packages: [encodings, ## kinterbasdb, pytz.zoneinfo.UTC, # matplotlib.numerix, You need to activate/un-comment the matplotlib.numerix line. Also note that if you only include UTC and you use the timezone stuff in matplot then a user NOT using UTC, i.e. another timezone will have a problem, it is therefore better to just include all of pytz. Why does matplotlib need timezone data?? -- Grant Edwards grante Yow! Yow! Those people at look exactly like Donnie visi.comand Marie Osmond!! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib and py2exe
Hi Werner, I am using matplotlib version 0.90.0 for python 2.4. Thank you, Archana. On 4/12/07, Grant Edwards [EMAIL PROTECTED] wrote: On 2007-04-01, Werner F. Bruhin [EMAIL PROTECTED] wrote: Hi Archana, Sometimes py2exe can't figure out what needs to be included. In these cases one creates entries in the packages section to force the inclusion of one or multiple packages. Archana Ganesan wrote: Hi all, ... options = {py2exe: {compressed: 1, optimize: 2, packages: [encodings, ## kinterbasdb, pytz.zoneinfo.UTC, # matplotlib.numerix, You need to activate/un-comment the matplotlib.numerix line. Also note that if you only include UTC and you use the timezone stuff in matplot then a user NOT using UTC, i.e. another timezone will have a problem, it is therefore better to just include all of pytz. Why does matplotlib need timezone data?? -- Grant Edwards grante Yow! Yow! Those people at look exactly like Donnie visi.comand Marie Osmond!! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Yet another matplotlib py2exe problem
Grant, Grant Edwards wrote: OK, I'm on my third day of fighting with matplotlib. I'm finally able to get py2exe to produce a dist directory, but it _still_ doesn't work: Traceback (most recent call last): File surfacedit.py, line 3, in ? File wxmpl.pyc, line 23, in ? File matplotlib\__init__.pyc, line 715, in ? File matplotlib\__init__.pyc, line 273, in wrapper File matplotlib\__init__.pyc, line 360, in _get_data_path RuntimeError: Could not find the matplotlib data files Here's the setup file I'm using: from distutils.core import setup import py2exe import matplotlib setup(windows=[{script:surfacedit.py}], data_files=[('',['../win32/gnuplot/bin/wgnuplot.exe', '../win32/gnuplot/bin/pgnuplot.exe', '../win32/gnuplot/bin/wgnuplot_pipes.exe'] ) + matplotlib.get_py2exe_datafiles()], the above line does not look correct. I.e. the '+' in there, what is it for? I have a folder structure of dist/lib dist/prog so this one works for me (lib\\matplotlibdata, mpfiles), # use this line if use zipfile option if one does not use the py2exe zipfile option, which I use, then this should work matplotlib.get_py2exe_datafiles(), # or this one if you don't use the zipfile option If one uses the zipfile option then all of the matplotlib stuff is under: dist/lib and it expects to have the data stuff in dist/lib otherwise it wants it in dist options={'py2exe': {'packages': ['matplotlib.numerix','pytz'], 'dll_excludes': ['tcl84.dll', 'tk84.dll', 'wxmsw26uh_vc.dll'], 'excludes': [Tkconstants, Tkinter, tcl, '_gtkagg', '_tkagg']}} ) Is there any current, correct, documentation on how to bundle a matplotlib app? I don't know, but I think the setup.py I posted to this list for embedding_in_wx4.py is pretty accurate and at least for me it does build a matplotlib app. Werner - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] 3D curve and errors in axes3d
belinda thom wrote: Me neither :-). I will try and get permission to upgrade axis.py w/my quick fix commenting out the kwargs in line 2131 of axes.py, as this is the quick option and I need something ASAP. You seem to know quite a bit about matplotlib. If you have any idea what this hack might break, I'd appreciate your insight so I know what to be wary of. Your fix is rendering the scalex and scaley kwargs of Axes.plot ineffective, so that both axes will be autoscaled regardless of the value of these kwargs. It might have no practical consequence for what you are doing. The larger concern is that I can't figure out how making that change would be needed--the error message you show doesn't make sense to me, given what I see in the code, which means I don't understand something critical--and in fact this fix doesn't seem to be needed on my system. So, maybe this particular problem really has been fixed since 0.9, and Tim is referring to some other sort of problem in the 3d code. (I am simply assuming he is working from svn, but I don't know this for a fact.) All very confusing and unsatisfactory. Eric - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib 0.90.0 on OS-X with wxPython2.8.3
Just to be clear, the installation order is: 1) install python2.5 from macpython. 2) remove wxagg.so 3) install wxpython frim macpython 4) install numpy/mpl from macpython Correct? -stephen On 4/12/07, Christopher Barker [EMAIL PROTECTED] wrote: Stephen Uhlhorn wrote: Do I need to manually remove _wxagg.so in order to use the new packages? if you want to use them with wxPython 2.8.*, yes. They *should* work with 2.6.*, with _wxagg.so, but I haven't tested that. This should all be better with the next release. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Matplotlib 0.90.0 on OS-X with wxPython2.8.3
Stephen Uhlhorn wrote: Just to be clear, the installation order is: 1) install python2.5 from macpython. 2) remove wxagg.so 3) install wxpython frim macpython 4) install numpy/mpl from macpython that's out of order. wxagg.so is part of mpl, so: 1) install python2.5 from macpython. 2) install wxpython frim macpython 3) install numpy/mpl from macpython 4) remove wxagg.so -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Matplotlib-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/matplotlib-users