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) is the radius...  I'm not sure what's the
problem of your originally codes.


On Oct 22, 11:03 pm, Jason Grout <jason-s...@creativetrax.com> wrote:
> William Stein wrote:
> > On Thu, Oct 22, 2009 at 10:09 PM, pong <wypon...@gmail.com> 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 don't see how on using this
> >> discussion group.
>
> > That's definitely an annoying bug.  The only workaround I could easily
> > find (without just fixing the bug) is:
>
> > k=graphs.CompleteGraph(6)
> > k.plot(graph_border=1)
>
> A work-around is to pad the graphic:
>
> k=graphs.CompleteGraph(6)
> show(k,axes_pad=.1)
>
> This adds 10% of the width to both the left and right (so the figure is
> 120% its original width) and 10% of the height to the top and bottom (so
> the figure is 120% of the original height).
>
> See my other message for a better fix that uses the vertex size to
> figure out how much to pad the graphic.
>
> Thanks,
>
> Jason
>
> --
> Jason Grout
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to