From: Steve C. <ste...@ya...> - 2004-10-31 14:08:11
|
> 7) The template backend uses=20 > > verbose.report('Error: %s'%msg) > > Should this be 'verbose.report_error' instead? I was looking at this too, earlier today, because it was giving me a problem - it was exiting without the error message being printed. I looked to see how backend_agg handles errors and deleted it because I don't think its even needed. With a GUI backend you can popup an error message window. With a non-GUI backend you can simply use "from matplotlib.backend_bases import error_msg" as backend_agg does. backend_bases has: def error_msg(msg, *args, **kwargs): """ Alert an error condition with message """ print >>sys.stderr, msg sys.exit() No verbose() at all! But I agree I think it should be 'verbose.report_error' Also, there is a new PS backend now. I've been working on backend_cairo.py and today got it producing its own png and PS files. Regards, Steve |