Hello, On Thu, Oct 8, 2009 at 6:32 AM, Simon King <simon.k...@nuigalway.ie> wrote: > However, back to the question on pictures: I understood Robert's hint > such that I do not need to explicitly produce (and save) a png. So, do > I understand correctly that > sage: show(B) > will be a valuable doc test for an instance B of a class with a show() > method?
It depends on how your show is implemented. There is a variable sage.plot.plot.DOCTEST_MODE which is set to True if things are running in a doctest. The show method on Graphics objects knows about this and will produce a PNG. If your show implementation calls Graphics.show, then you don't need to do anything; otherwise, you'll probably want to save a temporary PNG of DOCTEST_MODE is set to True. --Mike --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---