John,

On Tuesday 04 December 2007 14:07:36 you wrote:
> Two more tests.  WIll you set the debug level to
> --verbose-debug-annoying and add a savefig command to your script, eg
> savefig('myfig') with no extension (the backend will provide a default
> extension with the -d flags below).  Try running the script in three
> modes

PS and Agg work fast enough, and produce meaningful PS and PNG output files 
(as well as popping up a window with the plot). GTKAgg is the one taking a 
long time to pop up, AND results in an empty PNG file. I am attaching the 
debug output of the GTKAgg mode. (Delay occurs @ #[... DELAY....] line.

% cat test.py
from pylab import *
plot([1,2,3])
show()
savefig("myfig")
% python test.py -dGTKAgg --verbose-debug-annoying
matplotlib data path /usr/lib/python2.4/site-packages/matplotlib/mpl-data
$HOME=/home/ucfajlg
CONFIGDIR=/home/ucfajlg/.matplotlib
loaded rc 
file /usr/lib/python2.4/site-packages/matplotlib/mpl-data/matplotlibrc
matplotlib version 0.90.1
verbose.level debug-annoying
interactive is False
units is True
platform is linux2
loaded modules: 
['pylab', '_bisect', '__future__', 'copy_reg', 'sre_compile', 'distutils', 
'itertools', '_sre', 'japanese.aliases', 'site', '__builtin__', '
datetime', 'distutils.re', 'matplotlib.re', 'matplotlib.tempfile', 'encodings', 
'pytz.datetime', 'shutil', 'distutils.string', 'distutils.os', 'dateutil', '
matplotlib.datetime', 'posixpath', '_random', 'tempfile', 'errno', 
'matplotlib.warnings', 'binascii', 'encodings.codecs', 'sre_constants', 're', 
'matplotlib
.md5', 'os.path', 'pytz.sys', '_codecs', 'distutils.sysconfig', 
'encodings.exceptions', 'pytz.sets', 'math', 'fcntl', 'stat', 'zipimport', 
'string', 'warnin
gs', 'encodings.types', 'UserDict', 'encodings.utf_8', 'matplotlib', 
'japanese', 'sys', 'japanese.aliases.encodings', 'pytz.tzinfo', 'pytz', 
'__main__', 'ma
tplotlib.__future__', 'codecs', 'matplotlib.sys', 'matplotlib.pytz', 'types', 
'md5', 'matplotlib.dateutil', 'matplotlib.os', 'thread', 'sre', 'bisect', 'mat
plotlib.distutils', 'signal', 'distutils.errors', 'random', 'linecache', 
'matplotlib.shutil', 'posix', 'encodings.aliases', 'sets', 'exceptions', 
'sre_parse
', 'pytz.bisect', 'distutils.sys', 'os', 'strop']
numerix numpy 1.0.4
font search path 
['/usr/lib/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf', 
'/usr/lib/python2.4/site-packages/matplotlib/mpl-data/fonts/afm']
trying 
fontname 
/usr/lib/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf/cmsy10.ttf
trying 
fontname 
/usr/lib/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf/VeraSeBd.ttf
trying 
fontname 
/usr/lib/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf/cmr10.ttf
trying 
fontname 
/usr/lib/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf/cmex10.ttf
trying 
fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf
loaded ttfcache file /home/ucfajlg/.matplotlib/ttffont.cache
backend GTKAgg version 2.10.1
# [.... DELAY ....]
FigureCanvasAgg.draw
RendererAgg.__init__
RendererAgg.__init__ width=640.0,                         height=480.0
RendererAgg.__init__ _RendererAgg done
RendererAgg.__init__ done
RendererAgg._get_agg_font
        findfont failed Bitstream Vera Serif, New Century Schoolbook, Century 
Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New 
Roma
n, Times, Palatino, Charter, serif
Could not match Bitstream Vera Serif, New Century Schoolbook, Century 
Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New 
Roman, Times
, Palatino, Charter, serif, normal, normal.  
Returning 
/usr/lib/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
FigureCanvasAgg.buffer_rgba
RendererAgg.buffer_rgba
FigureCanvasAgg.print_figure
FigureCanvasAgg.draw
RendererAgg.__init__
RendererAgg.__init__ width=800.0,                         height=600.0
RendererAgg.__init__ _RendererAgg done
RendererAgg.__init__ done


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to