On Thu, Oct 22, 2009 at 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)

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.

> 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
>
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
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