Re: [sage-support] help plotting graphs

2015-11-19 Thread Nathann Cohen
> > Thanks -- I was half-expecting Nathann to be the first to reply! It was one of my 'no computer at work' day, sorry :-P > I don't (or rather, did not) know what D3 is... > It is a javascript library for visualisation. If I remember correctly, the guy who wrote it (used to?) work for th

Re: [sage-support] help plotting graphs

2015-11-19 Thread Nathann Cohen
Hellooo, Note that the renderer here evidently doesn't have edge labels implemented. > But using D3 (or something built on it) is the future for showing > "networks" in a webpage. There's many javascript libraries that > attempt to solve this problem these days. > Well, there is if y

[sage-support] Re: help plotting graphs

2015-11-19 Thread Nathann Cohen
Hello John, Here is a way to force your result: sage: EllipticCurve('11a1').isogeny_graph().show(aspect_ratio=.1) Graph.plot and Graph.show take a *LOT* of parameters: 1) Options specific to the plotting of graphs 2) Options specific to Graphics.plot() 3) Options specific to Graphics.show()

Re: [sage-support] help plotting graphs

2015-11-19 Thread Christophe Bal
William talks about D3.js. Le 19 nov. 2015 18:53, "John Cremona" a écrit : > Thanks -- I was half-expecting Nathann to be the first to reply! I > don't (or rather, did not) know what D3 is...and I think I will wait > for someone else to do that for the LMFDB & isogeny graphs. Meanwhile > it wo

Re: [sage-support] help plotting graphs

2015-11-19 Thread John Cremona
Thanks -- I was half-expecting Nathann to be the first to reply! I don't (or rather, did not) know what D3 is...and I think I will wait for someone else to do that for the LMFDB & isogeny graphs. Meanwhile it would still be nice to cut out the whitespace. John On 19 November 2015 at 12:19, Wil

[sage-support] Re: Error with integrate

2015-11-19 Thread Matt Rissler
Thanks for debugging my code. Should have been (1-x)^(3-1). I'm blaming that on having a one-week old at home. On Thursday, November 19, 2015 at 10:31:10 AM UTC-6, Dima Pasechnik wrote: > > > > On Thursday, 19 November 2015 15:41:37 UTC, Matt Rissler wrote: >> >> integrate(x^(3-1)*(1-x)*(3-1),x

[sage-support] help plotting graphs

2015-11-19 Thread John Cremona
I need to plot some graphs, save them and embed the results in a web page, for example this: http://www.lmfdb.org/EllipticCurve/Q/11/a/ The graph itself is created from its adjacency matrix (with some adjustment of the vertex positions to look good for some of the more complicated examples). But

[sage-support] Re: Error with integrate

2015-11-19 Thread Dima Pasechnik
On Thursday, 19 November 2015 15:41:37 UTC, Matt Rissler wrote: > > integrate(x^(3-1)*(1-x)*(3-1),x,0,1) > > Why is this returning 1/6 and not 1/30? > > well you can check by hand that it is 1/6, for you are integrating a polynomial 2*x^2-2*x^3 the antiderivative is 2*(x^3/3-x^4/4), and you get

[sage-support] Error with integrate

2015-11-19 Thread Matt Rissler
integrate(x^(3-1)*(1-x)*(3-1),x,0,1) Why is this returning 1/6 and not 1/30? More generally why is integrate(x^(ai-1)*(1-x)*(bi-1),x,0,1) returning (bi - 1)/(ai^2 + ai) and not beta(ai,bi) as it should? Running this on SMC. -- You received this message because you are subscribed to the Goog