From: Eric E. <ems...@ob...> - 2004-12-20 17:17:42
|
Hi, thanks for the feedback. To answer your questions: - I have both Numeric and numarry but I am using numarray in principle. - Running in verbose mode, here is the output: matplotlib data path /usr/share/matplotlib loaded rc file /home/emsellem/.matplotlibrc matplotlib version 0.65 verbose.level helpful interactive is False platform is linux2 numerix numarray 1.0 font search path ['/usr/share/matplotlib'] loaded ttfcache file /home/emsellem/.ttffont.cache Could not load matplotlib icon: 'module' object has no attribute 'window_set_default_icon_from_file' backend GTKAgg version 2.0.0 - Then a VERY important note: yes indeed I am an astronomer and I am used to have a fixed window (I first define its size or use some default) and THEN ONLY load the image itself. This is how I use ppgplot in python or Iraf, or Midas. I indeed to not then use any interpolation scheme there. - ALSO: there seems to be a bug in the figimage routine as it shows the image OUTSIDE an axis filled with white (this may be because I am not doing the right thing though...) - And finally here are the timing you asked for: (there seem to be reasonable considering the difference in CPU/RAM) Hope this helps Eric ================================================== Before correcting figima ========================= time python test.py --Numeric -dTkAgg 14.146u 2.363s 0:17.79 92.7% 0+0k 0+0io 10pf+0w time python test.py --Numeric -dGTKAgg 9.795u 1.697s 0:13.63 84.2% 0+0k 0+0io 12pf+0w time python test.py --numarray -dTkAgg 22.640u 1.443s 0:25.31 95.1% 0+0k 0+0io 13pf+0w time python test.py --numarray -dGTKAgg 15.125u 0.925s 0:16.26 98.6% 0+0k 0+0io 0pf+0w After correcting figima ========================= time python test.py --Numeric -dTkAgg 10.432u 1.663s 0:12.37 97.7% 0+0k 0+0io 0pf+0w time python test.py --Numeric -dGTKAgg 5.209u 0.845s 0:06.10 99.0% 0+0k 0+0io 0pf+0w time python test.py --numarray -dTkAgg 16.391u 1.036s 0:17.96 96.9% 0+0k 0+0io 0pf+0w time python test.py --numarray -dGTKAgg 8.225u 0.546s 0:08.96 97.7% 0+0k 0+0io 0pf+0w -- =============================================================== Observatoire de Lyon ems...@ob... 9 av. Charles-Andre tel: +33 4 78 86 83 84 69561 Saint-Genis Laval Cedex fax: +33 4 78 86 83 86 France http://www-obs.univ-lyon1.fr/eric.emsellem =============================================================== |