Nevermind, I figured it out.  I need to use the new vertex labels in
the positioning dictionary.  Works fine after that.

-Marshall

On Feb 12, 8:43 am, Marshall Hampton <[email protected]> wrote:
> Hi everybody,
>
> I am trying to plot a graph in a particular way, so I want to control
> the vertex positions.  But the plot(pos=)  option doesn't seem to
> work.  Here is what I have:
>
> g1 = graphs.CompleteGraph(8)
> g1.loops(True)
> for i in range(1,8):
>     g1.add_edge(i,i)
> labels = ['A+','C+','G+','T+','A-','C-','G-','T-']
> g1.relabel(labels)
> posd = {0:[0.0,1.0],1:[1,1],2:[2,1],3:[3,1],4:[0,0],5:[1,0],6:[2,0],7:
> [3,0]}
> show(g1.plot(pos = posd, vertex_size = 2, talk = True),figsize =
> [6,6])
>
> Then it doesn't seem to affect the layout at all.
>
> Doing slightly different things, using the set_vertex function (which
> at first I thought would relabel them), resulted in seemingly random
> layouts (spring layouts?), but I am having trouble reproducing that
> now.
>
> -Marshall
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to