Re: [sage-support] Re: Graph plotting problem. Everything looks small.
Nathann, Thank you! This resolved the issue perfectly. On Monday, January 14, 2013 3:52:05 AM UTC-6, Nathann Cohen wrote: > > Oh. I see. It's just that the default layout does not like disconnected > graphs at all. Your graph ha many connected components, and it would be > best to print them independently :-) > > for cc in CG.connected_components_subgraphs(): > cc.show() > > Nathann -- You received this message because you are subscribed to the Google Groups "sage-support" group. 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. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Re: Graph plotting problem. Everything looks small.
Oh. I see. It's just that the default layout does not like disconnected graphs at all. Your graph ha many connected components, and it would be best to print them independently :-) for cc in CG.connected_components_subgraphs(): cc.show() Nathann -- You received this message because you are subscribed to the Google Groups "sage-support" group. 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. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Re: Graph plotting problem. Everything looks small.
Hi Nathann. Unfortuantely, I didn't get any difference. Here is a way to create the graph: CG = DiGraph() CG.add_edges([(0, 36, None), (1, 48, None), (2, 14, None), (3, 22, None), (4, 5, None), (4, 56, None), (5, 4, None), (6, 8, None), (6, 27, None), (7, 8, None), (8, 6, None), (8, 7, None), (8, 27, None), (8, 28, None), (10, 11, None), (10, 13, None), (11, 10, None), (12, 53, None), (12, 61, None), (13, 10, None), (14, 2, None), (15, 34, None), (16, 22, None), (16, 38, None), (17, 18, None), (18, 17, None), (19, 24, None), (21, 49, None), (21, 64, None), (21, 69, None), (22, 3, None), (22, 16, None), (24, 19, None), (25, 34, None), (27, 6, None), (27, 8, None), (27, 58, None), (28, 8, None), (29, 42, None), (29, 44, None), (30, 76, None), (30, 78, None), (30, 79, None), (31, 67, None), (33, 63, None), (34, 15, None), (34, 25, None), (36, 0, None), (37, 66, None), (38, 16, None), (39, 66, None), (39, 74, None), (40, 80, None), (41, 52, None), (42, 29, None), (42, 44, None), (43, 73, None), (44, 29, None), (44, 42, None), (45, 57, None), (47, 51, None), (48, 1, None), (49, 21, None), (50, 76, None), (50, 77, None), (51, 47, None), (52, 41, None), (53, 12, None), (54, 55, None), (55, 54, None), (56, 4, None), (57, 45, None), (58, 27, None), (60, 71, None), (61, 12, None), (62, 68, None), (63, 33, None), (64, 21, None), (64, 69, None), (65, 69, None), (66, 37, None), (66, 39, None), (66, 72, None), (67, 31, None), (68, 62, None), (69, 21, None), (69, 64, None), (69, 65, None), (71, 60, None), (72, 66, None), (73, 43, None), (74, 39, None), (75, 81, None), (76, 30, None), (76, 50, None), (76, 77, None), (76, 78, None), (76, 79, None), (77, 50, None), (77, 76, None), (77, 78, None), (78, 30, None), (78, 76, None), (78, 77, None), (79, 30, None), (79, 76, None), (80, 40, None), (81, 75, None)]) On Sunday, January 13, 2013 2:36:21 PM UTC-6, Nathann Cohen wrote: > > Hell !!! > > You problem may be solved by copying the graph's edges first : > > dg2 = DiGraph() > dg2.add_edges(dg.edges()) > dg2.show() > > If it changes nothing there's not much that I can do unless you give us a > way to create your graph on our computers :-) > > Nathann > > On Sunday, January 13, 2013 6:07:05 PM UTC+1, crushinator wrote: >> >> Here is a picture of the problem. The vertices are too small and the >> edge arrows are too big. I can't tell anything that is going on. I tried >> increasing figsize, vertex_size, and the dpi you suggested. I cannot >> figure out why this won't work. Any help is greatly appreciated. Thank >> you. >> >> On Thursday, January 10, 2013 5:32:15 PM UTC-6, David Joyner wrote: >>> >>> On Thu, Jan 10, 2013 at 6:07 PM, crushinator >>> wrote: >>> > Alternatively, is there a way I can make the graphics produced higher >>> > resolution? >>> > >>> >>> I don't understand what you tried and what you didn't. >>> Did you try the dpi option? (It's in th reference manual... >>> search "sagemath graph plot dpi option" then use find to get >>> the first line with dpi in it.) >>> If so, what was the problem? >>> >>> > >>> > On Thursday, January 10, 2013 3:27:53 PM UTC-6, crushinator wrote: >>> >> >>> >> Hi, >>> >> >>> >> I have a problem getting a graph to plot on sage. I have a graph >>> called >>> >> dg, a digraph on 100 vertices. The graph is several components. >>> When I >>> >> plot dg using the following: >>> >> >>> >> dg.plot(layout='graphviz', vertex_labels=false, vertex_size = 10) >>> >> >>> >> I get a graph where the vertices are extremely small and the arrows >>> from >>> >> the edges dominate the visualization. I'm trying to make the graph >>> have >>> >> normal sized vertices and edges. >>> >> My question is what settings can i use to make the arrows on the >>> edges >>> >> smaller but visible? >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups >>> > "sage-support" group. >>> > To post to this group, send email to sage-s...@googlegroups.com. >>> > To unsubscribe from this group, send email to >>> > sage-support...@googlegroups.com. >>> > Visit this group at http://groups.google.com/group/sage-support?hl=en. >>> >>> > >>> > >>> >> -- You received this message because you are subscribed to the Google Groups "sage-support" group. 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. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Re: Graph plotting problem. Everything looks small.
Hell !!! You problem may be solved by copying the graph's edges first : dg2 = DiGraph() dg2.add_edges(dg.edges()) dg2.show() If it changes nothing there's not much that I can do unless you give us a way to create your graph on our computers :-) Nathann On Sunday, January 13, 2013 6:07:05 PM UTC+1, crushinator wrote: > > Here is a picture of the problem. The vertices are too small and the edge > arrows are too big. I can't tell anything that is going on. I tried > increasing figsize, vertex_size, and the dpi you suggested. I cannot > figure out why this won't work. Any help is greatly appreciated. Thank > you. > > On Thursday, January 10, 2013 5:32:15 PM UTC-6, David Joyner wrote: >> >> On Thu, Jan 10, 2013 at 6:07 PM, crushinator >> wrote: >> > Alternatively, is there a way I can make the graphics produced higher >> > resolution? >> > >> >> I don't understand what you tried and what you didn't. >> Did you try the dpi option? (It's in th reference manual... >> search "sagemath graph plot dpi option" then use find to get >> the first line with dpi in it.) >> If so, what was the problem? >> >> > >> > On Thursday, January 10, 2013 3:27:53 PM UTC-6, crushinator wrote: >> >> >> >> Hi, >> >> >> >> I have a problem getting a graph to plot on sage. I have a graph >> called >> >> dg, a digraph on 100 vertices. The graph is several components. When >> I >> >> plot dg using the following: >> >> >> >> dg.plot(layout='graphviz', vertex_labels=false, vertex_size = 10) >> >> >> >> I get a graph where the vertices are extremely small and the arrows >> from >> >> the edges dominate the visualization. I'm trying to make the graph >> have >> >> normal sized vertices and edges. >> >> My question is what settings can i use to make the arrows on the edges >> >> smaller but visible? >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups >> > "sage-support" group. >> > To post to this group, send email to sage-s...@googlegroups.com. >> > To unsubscribe from this group, send email to >> > sage-support...@googlegroups.com. >> > Visit this group at http://groups.google.com/group/sage-support?hl=en. >> > >> > >> > -- You received this message because you are subscribed to the Google Groups "sage-support" group. 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. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Re: Graph plotting problem. Everything looks small.
Here is a picture of the problem. The vertices are too small and the edge arrows are too big. I can't tell anything that is going on. I tried increasing figsize, vertex_size, and the dpi you suggested. I cannot figure out why this won't work. Any help is greatly appreciated. Thank you. On Thursday, January 10, 2013 5:32:15 PM UTC-6, David Joyner wrote: > > On Thu, Jan 10, 2013 at 6:07 PM, crushinator > > > wrote: > > Alternatively, is there a way I can make the graphics produced higher > > resolution? > > > > I don't understand what you tried and what you didn't. > Did you try the dpi option? (It's in th reference manual... > search "sagemath graph plot dpi option" then use find to get > the first line with dpi in it.) > If so, what was the problem? > > > > > On Thursday, January 10, 2013 3:27:53 PM UTC-6, crushinator wrote: > >> > >> Hi, > >> > >> I have a problem getting a graph to plot on sage. I have a graph > called > >> dg, a digraph on 100 vertices. The graph is several components. When > I > >> plot dg using the following: > >> > >> dg.plot(layout='graphviz', vertex_labels=false, vertex_size = 10) > >> > >> I get a graph where the vertices are extremely small and the arrows > from > >> the edges dominate the visualization. I'm trying to make the graph > have > >> normal sized vertices and edges. > >> My question is what settings can i use to make the arrows on the edges > >> smaller but visible? > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "sage-support" group. > > To post to this group, send email to > > sage-s...@googlegroups.com. > > > To unsubscribe from this group, send email to > > sage-support...@googlegroups.com . > > Visit this group at http://groups.google.com/group/sage-support?hl=en. > > > > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. 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. Visit this group at http://groups.google.com/group/sage-support?hl=en. <>
Re: [sage-support] Re: Graph plotting problem. Everything looks small.
On Thu, Jan 10, 2013 at 6:07 PM, crushinator wrote: > Alternatively, is there a way I can make the graphics produced higher > resolution? > I don't understand what you tried and what you didn't. Did you try the dpi option? (It's in th reference manual... search "sagemath graph plot dpi option" then use find to get the first line with dpi in it.) If so, what was the problem? > > On Thursday, January 10, 2013 3:27:53 PM UTC-6, crushinator wrote: >> >> Hi, >> >> I have a problem getting a graph to plot on sage. I have a graph called >> dg, a digraph on 100 vertices. The graph is several components. When I >> plot dg using the following: >> >> dg.plot(layout='graphviz', vertex_labels=false, vertex_size = 10) >> >> I get a graph where the vertices are extremely small and the arrows from >> the edges dominate the visualization. I'm trying to make the graph have >> normal sized vertices and edges. >> My question is what settings can i use to make the arrows on the edges >> smaller but visible? > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > 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. > Visit this group at http://groups.google.com/group/sage-support?hl=en. > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. 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. Visit this group at http://groups.google.com/group/sage-support?hl=en.