Changeset 7604:8202a2b75c0f


Ignore:
Timestamp:
12/03/07 21:59:16 (5 years ago)
Author:
R. L. Miller <rlmillster@…>
Branch:
default
Message:

make docs more readable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/graphs/graph.py

    r7528 r7604  
    25602560 
    25612561    def plot(self, pos=None, layout=None, vertex_labels=True, 
    2562              edge_labels=False, vertex_size=200, graph_border=False, 
    2563              vertex_colors=None, partition=None, edge_colors=None, 
    2564              scaling_term=0.05, iterations=50, 
    2565              color_by_label=False, heights=None): 
     2562            edge_labels=False, vertex_size=200, graph_border=False, 
     2563            vertex_colors=None, partition=None, edge_colors=None, 
     2564            scaling_term=0.05, iterations=50, 
     2565            color_by_label=False, heights=None): 
    25662566        """ 
    25672567        Returns a graphics object representing the (di)graph. 
     
    25702570            pos -- an optional positioning dictionary 
    25712571            layout -- what kind of layout to use, takes precedence over pos 
    2572                 'circular' -- plots the graph with vertices evenly distributed on a circle 
    2573                 'spring' -- uses the traditional spring layout, ignores the graphs current positions 
     2572                'circular' -- plots the graph with vertices evenly distributed 
     2573                    on a circle 
     2574                'spring' -- uses the traditional spring layout, ignores the 
     2575                    graphs current positions 
    25742576            vertex_labels -- whether to print vertex labels 
    2575             edge_labels -- whether to print edge labels. By default, False, but if True, the result 
    2576                 of str(l) is printed on the edge for each label l. Labels equal to None are not printed. 
     2577            edge_labels -- whether to print edge labels. By default, False, but 
     2578                if True, the result of str(l) is printed on the edge for each 
     2579                label l. Labels equal to None are not printed. 
    25772580            vertex_size -- size of vertices displayed 
    25782581            graph_border -- whether to include a box around the graph 
    2579             vertex_colors -- optional dictionary to specify vertex colors: each key is a color recognizable 
    2580                 by matplotlib, and each corresponding entry is a list of vertices. If a vertex is not listed, 
    2581                 it looks invisible on the resulting plot (it doesn't get drawn). 
    2582             edge_colors -- a dictionary specifying edge colors: each key is a color recognized by 
    2583                 matplotlib, and each entry is a list of edges. 
    2584             partition -- a partition of the vertex set. if specified, plot will show each cell in a different 
    2585                 color. vertex_colors takes precedence. 
    2586             scaling_term -- default is 0.05. if vertices are getting chopped off, increase; if graph 
    2587                 is too small, decrease. should be positive, but values much bigger than 
    2588                 1/8 won't be useful unless the vertices are huge 
     2582            vertex_colors -- optional dictionary to specify vertex colors: each 
     2583                key is a color recognizable by matplotlib, and each corresponding 
     2584                entry is a list of vertices. If a vertex is not listed, it looks 
     2585                invisible on the resulting plot (it doesn't get drawn). 
     2586            edge_colors -- a dictionary specifying edge colors: each key is a 
     2587                color recognized by matplotlib, and each entry is a list of edges. 
     2588            partition -- a partition of the vertex set. if specified, plot will 
     2589                show each cell in a different color. vertex_colors takes precedence. 
     2590            scaling_term -- default is 0.05. if vertices are getting chopped off, 
     2591                increase; if graph is too small, decrease. should be positive, but 
     2592                values much bigger than 1/8 won't be useful unless the vertices 
     2593                are huge 
    25892594            iterations -- how many iterations of the spring layout algorithm to 
    25902595                go through, if applicable 
     
    27202725            pos -- an optional positioning dictionary 
    27212726            layout -- what kind of layout to use, takes precedence over pos 
    2722                 'circular' -- plots the graph with vertices evenly distributed on a circle 
    2723                 'spring' -- uses the traditional spring layout, ignores the graphs current positions 
     2727                'circular' -- plots the graph with vertices evenly distributed 
     2728                    on a circle 
     2729                'spring' -- uses the traditional spring layout, ignores the 
     2730                    graphs current positions 
    27242731            vertex_labels -- whether to print vertex labels 
    2725             edge_labels -- whether to print edgeedge labels. By default, False, but if True, the result 
    2726                 of str(l) is printed on the edge for each label l. Labels equal to None are not printed. 
     2732            edge_labels -- whether to print edgeedge labels. By default, False, 
     2733                but if True, the result of str(l) is printed on the edge for 
     2734                each label l. Labels equal to None are not printed. 
    27272735            vertex_size -- size of vertices displayed 
    27282736            graph_border -- whether to include a box around the graph 
    2729             vertex_colors -- optional dictionary to specify vertex colors: each key is a color recognizable 
    2730                 by matplotlib, and each corresponding entry is a list of vertices. If a vertex is not listed, 
    2731                 it looks invisible on the resulting plot (it doesn't get drawn). 
    2732             edge_colors -- a dictionary specifying edge colors: each key is a color recognized by 
    2733                 matplotlib, and each entry is a list of edges. 
    2734             partition -- a partition of the vertex set. if specified, plot will show each cell in a different 
    2735                 color. vertex_colors takes precedence. 
    2736             scaling_term -- default is 0.05. if vertices are getting chopped off, increase; if graph 
    2737                 is too small, decrease. should be positive, but values much bigger than 
    2738                 1/8 won't be useful unless the vertices are huge 
    2739             talk -- if true, prints large vertices with white backgrounds so that labels are legible on slies 
     2737            vertex_colors -- optional dictionary to specify vertex colors: each 
     2738                key is a color recognizable by matplotlib, and each corresponding 
     2739                entry is a list of vertices. If a vertex is not listed, it looks 
     2740                invisible on the resulting plot (it doesn't get drawn). 
     2741            edge_colors -- a dictionary specifying edge colors: each key is a 
     2742                color recognized by matplotlib, and each entry is a list of edges. 
     2743            partition -- a partition of the vertex set. if specified, plot will 
     2744                show each cell in a different color. vertex_colors takes precedence. 
     2745            scaling_term -- default is 0.05. if vertices are getting chopped off, 
     2746                increase; if graph is too small, decrease. should be positive, but 
     2747                values much bigger than 1/8 won't be useful unless the vertices 
     2748                are huge 
     2749            talk -- if true, prints large vertices with white backgrounds so that 
     2750                labels are legible on slies 
    27402751            iterations -- how many iterations of the spring layout algorithm to 
    27412752                go through, if applicable 
Note: See TracChangeset for help on using the changeset viewer.