Trees | Indices | Help |
---|
|
AbstractDrawer module (considered to be a private module, the API may change!) Provides: o AbstractDrawer - Superclass for methods common to *Drawer objects o page_sizes - Method that returns a ReportLab pagesize when passed a valid ISO size o draw_box - Method that returns a closed path object when passed the proper co-ordinates. For HORIZONTAL boxes only. o angle2trig - Method that returns a tuple of values that are the vector for rotating a point through a passed angle, about an origin o intermediate_points - Method that returns a list of values intermediate between the points in a passed dataset For drawing capabilities, this module uses reportlab to draw and write the diagram: http://www.reportlab.com For dealing with biological information, the package expects BioPython objects: http://www.biopython.org
|
|||
AbstractDrawer AbstractDrawer |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
__package__ =
|
|
o size A string representing a standard page size Returns a ReportLab pagesize when passed a valid size string |
draw_box(self, (x1, y1), (x2, y2), (x3, y3), (x4, y4), color=colors.lightgreen) o (x1,y1) and (x2,y2) Co-ordinates for opposite corners of the box o color /colour The color for the box (colour takes priority over color) o border Border color for the box Returns a closed path object, beginning at (x1,y1) going round the four points in order, and filling with the passed color. |
draw_polygon(self, (x1, y1), (x2, y2), (x3, y3), (x4, y4) colour=colors.lightgreen) o list_of_point = list of (x,y) tuples for the corner coordinates o colour The colour for the box Returns a closed path object, beginning at (x1,y1) going round the four points in order, and filling with the passed colour. |
o theta Angle in degrees, counter clockwise from horizontal Returns a representation of the passed angle in a format suitable for ReportLab rotations (i.e. cos(theta), sin(theta), -sin(theta), cos(theta) tuple) |
o graph_data o start o end Returns a list of (start, end, value) tuples describing the passed graph data as 'bins' between position midpoints. |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Dec 16 11:25:17 2009 | http://epydoc.sourceforge.net |