questions about the PS backend

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

Hello,

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'

Yes, it seems that this makes sense in the non-interactive case.
We are aborting the program, so the message should be visible
in any case.

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.

Cool!

All the best,
Jochen

···

On Sun, Oct 31, 2004 at 10:09:55PM +0800, Steve Chaplin wrote:
--