[sage-support] Re: Problem in displaying graphs

2011-03-22 Thread Jason Grout
On 3/22/11 9:42 PM, Jason Grout wrote: On 3/21/11 10:13 AM, kcrisman wrote: I think there was a 'needs info' involved on the relevant ticket? I think #9211 might be the ticket you are referring to? I just looked at #9211 and it looks like it's probably ready, except for some doctests and furth

[sage-support] Re: Problem in displaying graphs

2011-03-22 Thread Jason Grout
On 3/21/11 10:13 AM, kcrisman wrote: I think there was a 'needs info' involved on the relevant ticket? I think #9211 might be the ticket you are referring to? I just looked at #9211 and it looks like it's probably ready, except for some doctests and further stress-testing. Anyone want to gi

[sage-support] Re: Problem in displaying graphs

2011-03-22 Thread pong
The only "fiddling" that I did was instead of putting axes_pad=0.1 within the scope of plot(), like Graph(d).plot(axes_pad=0.1), I put it outside as an argument for \sageplot And yes, I forgot to type } in my previous post, sorry. On Mar 21, 8:13 am, kcrisman wrote: > On Mar 20, 4:14 pm, pong w

[sage-support] Re: Problem in displaying graphs

2011-03-21 Thread kcrisman
On Mar 20, 4:14 pm, pong wrote: > With some fiddling, > > \sageplot{Graph(d).plot(), axes_pad=0.1) > > works around the problem. Can you be more explicit about 'fiddling'? Does that mean you patched SageTeX, or Sage? Also, is there a } or a ) at the end of the command? Thanks! It's true tha

[sage-support] Re: Problem in displaying graphs

2011-03-20 Thread pong
With some fiddling, \sageplot{Graph(d).plot(), axes_pad=0.1) works around the problem. On Mar 19, 6:50 pm, pong wrote: > Sage plots some graphs with vertices partially chopped off. > For example: > > sage: d={1:[2,3,5], 2:[3], 3:[4,5], 4:[5]} > sage: Graph(d).plot() > > I thought the bug was fi

[sage-support] Re: problem in displaying graphs

2009-10-23 Thread Jason Grout
William Stein wrote: > > That's one of those quick hackish design decisions that comes back to > haunt us over the years... can one just query matplotlib for a range > that contains all the elements in the plot? Indeed! Some discussion: For tick labels and other things that extend beyond th

[sage-support] Re: problem in displaying graphs

2009-10-23 Thread William Stein
On Fri, Oct 23, 2009 at 6:30 AM, Jason Grout wrote: > > William Stein wrote: > >> Thanks!  And, argh!  I stared at the output of k.plot? for 10-15 >> minutes before in response to the original email, and axes_pad isn't >> even there.     That would have been useful many times in my class >> last

[sage-support] Re: problem in displaying graphs

2009-10-23 Thread Jason Grout
William Stein wrote: > Thanks! And, argh! I stared at the output of k.plot? for 10-15 > minutes before in response to the original email, and axes_pad isn't > even there. That would have been useful many times in my class > last year. That will teach me to read the source more. It's an o

[sage-support] Re: problem in displaying graphs

2009-10-23 Thread Jason Grout
pong wrote: > Hi Jason, > > Setting axes_pad=.1 does work. Thanks! However, I tried your > codes in the previous email. The resulting graph has nodes "clump > together". I guess the problem is with the value 1.5. When I changed > that to a smaller value say .05 then things work just fine. Ev

[sage-support] Re: problem in displaying graphs

2009-10-22 Thread pong
Hi Jason, Setting axes_pad=.1 does work. Thanks! However, I tried your codes in the previous email. The resulting graph has nodes "clump together". I guess the problem is with the value 1.5. When I changed that to a smaller value say .05 then things work just fine. Even though, sqrt(area/pi)

[sage-support] Re: problem in displaying graphs

2009-10-22 Thread William Stein
On Thu, Oct 22, 2009 at 11:03 PM, Jason Grout wrote: > > William Stein wrote: >> On Thu, Oct 22, 2009 at 10:09 PM, pong wrote: >>> I am using SAGE 4.1.2 notebook on firefox on a Mac. >>> >>> k=graphs.CompleteGraph(6) >>> show(k) >>> >>> displays K_6 but the vertices got truncated. I don't have t

[sage-support] Re: problem in displaying graphs

2009-10-22 Thread Jason Grout
William Stein wrote: > On Thu, Oct 22, 2009 at 10:09 PM, pong wrote: >> I am using SAGE 4.1.2 notebook on firefox on a Mac. >> >> k=graphs.CompleteGraph(6) >> show(k) >> >> displays K_6 but the vertices got truncated. I don't have this problem >> on a linux machine running SAGE 4.1.1 notebook on

[sage-support] Re: problem in displaying graphs

2009-10-22 Thread Jason Grout
pong wrote: > I am using SAGE 4.1.2 notebook on firefox on a Mac. > > k=graphs.CompleteGraph(6) > show(k) > > displays K_6 but the vertices got truncated. I don't have this problem > on a linux machine running SAGE 4.1.1 notebook on firefox. > > Any help? > I would like to include the pic but I

[sage-support] Re: problem in displaying graphs

2009-10-22 Thread pong
Thanks for the reply. Is it a bug of SAGE 4.1.2 or just the Mac distribution? I guess my question is if I upgrade SAGE to the latest version on my linux machine, will I get the same problem? On Oct 22, 10:22 pm, William Stein wrote: > On Thu, Oct 22, 2009 at 10:09 PM, pong wrote: > > > I am u

[sage-support] Re: problem in displaying graphs

2009-10-22 Thread William Stein
On Thu, Oct 22, 2009 at 10:09 PM, pong wrote: > > I am using SAGE 4.1.2 notebook on firefox on a Mac. > > k=graphs.CompleteGraph(6) > show(k) > > displays K_6 but the vertices got truncated. I don't have this problem > on a linux machine running SAGE 4.1.1 notebook on firefox. > > Any help? > I w