On Thursday, January 18, 2018 at 11:24:56 PM UTC, Travis Scrimshaw wrote: > > > > I don't think plot, unlike show, actually goes through and does the >> > rendering of the image and discards the result. However, I could be >> > wrong about this. >> >> You were right. After >> >> perl -e 's/(G|g)\.show\(\)/_=\1.plot()/g;' -p -i.bak >> src/sage/graphs/generators/platonic_solids.py >> >> the test time dropped from 3,5 to 0,5 seconds. >> > > Thank you for testing it and having some hard evidence! > >> >> Should it be on TESTS or in EXAMPLES? >> >> It doesn't matter to me. >
I think it does matter for the user: in EXAMPLES one should put examples useful for the user, and G.show() is more flexible, e.g. one can do G.show(method="js") to show G in the browser. Dima > > Best, > Travis > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.