Re: [sage-devel] Re: Example graphs and show()

2018-01-19 Thread Dima Pasechnik
On Friday, January 19, 2018 at 10:28:55 AM UTC, Jori Mäntysalo wrote: > > On Fri, 19 Jan 2018, Dima Pasechnik wrote: > > > 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") t

Re: [sage-devel] Re: Example graphs and show()

2018-01-19 Thread Jori Mäntysalo
On Fri, 19 Jan 2018, Dima Pasechnik wrote: 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. True, but is it meaningfull to say for most graphs that this-a

Re: [sage-devel] Re: Example graphs and show()

2018-01-19 Thread Dima Pasechnik
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

Re: [sage-devel] Re: Example graphs and show()

2018-01-18 Thread Travis Scrimshaw
> > 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_solid

Re: [sage-devel] Re: Example graphs and show()

2018-01-18 Thread Jori Mäntysalo
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/g

Re: [sage-devel] Re: Example graphs and show()

2018-01-17 Thread Travis Scrimshaw
On Wednesday, January 17, 2018 at 12:25:06 PM UTC-6, Jori Mäntysalo wrote: > > On Wed, 17 Jan 2018, Travis Scrimshaw wrote: > > > It might be better to do the plot() instead as that returns a graphics > object, and I believe is > > faster (but I have no quantitative evidence of this). > > I d

Re: [sage-devel] Re: Example graphs and show()

2018-01-17 Thread Jori Mäntysalo
On Wed, 17 Jan 2018, Travis Scrimshaw wrote: It might be better to do the plot() instead as that returns a graphics object, and I believe is faster (but I have no quantitative evidence of this). I don't think so. There is no real canvas where show() could draw in test mode, so the time shoul