Trees | Indices | Help |
---|
|
GraphSet Provides: Methods: o __init__(self, set_id=None, name=None) Called on instantiation o new_graph(self, data, name, style='bar', color=colors.lightgreen, altcolor=colors.darkseagreen) Create new graph in the set from the passed data, with the passed parameters o del_graph(self, graph_id) Delete graph with the passed id o get_graphs(self) Returns a list of all graphs o get_ids(self) Returns a list of graph ids o range(self) Returns the range covered by the graphs in the set o to_string(self, verbose=0) Returns a string describing the set o __len__(self) Returns the length of sequence covered by the set o __getitem__(self, key) Returns the graph with the id of the passed key o __str__(self) Returns a string describing the set Attributes: o id Unique identifier for the set o name String describing the set
|
|||
|
|||
|
|||
|
|||
[Graph, Graph, ...] |
|
||
[int, int, ...] |
|
||
(int, int) |
|
||
(float, float, float, float, float) |
|
||
"" |
|
||
int |
|
||
Graph |
|
||
"" |
|
|
o data List of (position, value) int tuples o name String, description of the graph o style String ('bar', 'heat', 'line') describing how the graph will be drawn o color colors.Color describing the color to draw all or 'high' (some styles) data (overridden by backwards compatible argument with UK spelling, colour). o altcolor colors.Color describing the color to draw 'low' (some styles) data (overridden by backwards compatible argument with UK spelling, colour). o linewidth Float describing linewidth for graph o center Float setting the value at which the x-axis crosses the y-axis (overridden by backwards compatible argument with UK spelling, centre) Add a GraphData object to the diagram (will be stored internally |
o graph_id Identifying value of the graph Remove a graph from the set, indicated by its id |
o verbose Flag indicating whether a short or complete account of the set is required Returns a formatted string with information about the set
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Jul 14 01:49:28 2010 | http://epydoc.sourceforge.net |