Hi Mike!

On Oct 8, 5:11 am, Mike Hansen <mhan...@gmail.com> wrote:
> 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.

Good that you mention this. In fact, my show() method returns a
graphic object. So, if I say "show(G)" or "G.show()" then a picture
pops up.

But I understand your statement that the show() method is supposed to
return None and invoke Graphics.show() internally.

So, is it bad if my show() returns a graphic object?

Cheers,
Simon

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to