[sage-support] Re: Plotting certain lattice points nicely

2009-01-15 Thread Marshall Hampton
Well, if you look at the Mathematica code they do at least as much work as I do to get all that. The one thing that I think makes sense to add to Sage is maybe the gridlines option, which could well be in matplotlib and just needs to be accessible. I know Mike Hansen and A. Bergeron tried recen

[sage-support] Re: Plotting certain lattice points nicely

2009-01-15 Thread kcrisman
> Here's a first attempt at imitating your first link: Thanks, Marshall! Far more than I was expecting - it looks very nice. > > {{{ > var('x,y') > ngamma = n(euler_gamma) > def dirich(r): >     return r*log(r)+(2*ngamma-1)*r Right, this can't be simplified. Neither can the interact part, eith

[sage-support] Re: Plotting certain lattice points nicely

2009-01-14 Thread Marshall Hampton
Here's a first attempt at imitating your first link: {{{ var('x,y') ngamma = n(euler_gamma) def dirich(r): return r*log(r)+(2*ngamma-1)*r def lattice_pts(r): tab = [[i,j] for i in range(1,ceil(r)) for j in range(1,ceil(r))] tab2 = [q for q in tab if q[0]*q[1] <= r] return tab2 @