On Wed, 17 Jan 2018, 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.
However, the output of the plot should be something that says how many graphics objects, which generally should not change.
True. Should it be on TESTS or in EXAMPLES? -- Jori Mäntysalo