Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def Bio.Graphics.GenomeDiagram._AbstractDrawer.AbstractDrawer.__init__ (   self,
  parent,
  pagesize = 'A3',
  orientation = 'landscape',
  x = 0.05,
  y = 0.05,
  xl = None,
  xr = None,
  yt = None,
  yb = None,
  start = None,
  end = None,
  tracklines = 0 
)
__init__(self, parent, pagesize='A3', orientation='landscape',
 x=0.05, y=0.05, xl=None, xr=None, yt=None, yb=None,
 start=None, end=None, tracklines=0)

    o parent    Diagram object containing the data that the drawer
        draws

    o pagesize  String describing the ISO size of the image, or a tuple
        of pixels

    o orientation   String describing the required orientation of the
            final drawing ('landscape' or 'portrait')

    o x         Float (0->1) describing the relative size of the X
        margins to the page

    o y         Float (0->1) describing the relative size of the Y
        margins to the page

    o xl        Float (0->1) describing the relative size of the left X
        margin to the page (overrides x)

    o xl        Float (0->1) describing the relative size of the left X
        margin to the page (overrides x)

    o xr        Float (0->1) describing the relative size of the right X
        margin to the page (overrides x)

    o yt        Float (0->1) describing the relative size of the top Y
        margin to the page (overrides y)

    o yb        Float (0->1) describing the relative size of the lower Y
        margin to the page (overrides y)

    o start     Int, the position to begin drawing the diagram at

    o end       Int, the position to stop drawing the diagram at

    o tracklines    Boolean flag to show (or not) lines delineating tracks
            on the diagram            

Definition at line 341 of file _AbstractDrawer.py.

References Bio.Graphics.GenomeDiagram._AbstractDrawer.AbstractDrawer._parent, Bio.Graphics.GenomeDiagram._AbstractDrawer.AbstractDrawer.set_bounds(), Bio.Graphics.GenomeDiagram._AbstractDrawer.AbstractDrawer.set_margins(), Bio.Graphics.GenomeDiagram._AbstractDrawer.AbstractDrawer.set_page_size(), Bio.Graphics.GenomeDiagram._AbstractDrawer.AbstractDrawer.tracklines, Bio.Graphics.GenomeDiagram._AbstractDrawer.AbstractDrawer.xcenter, and Bio.Graphics.GenomeDiagram._AbstractDrawer.AbstractDrawer.ycenter.

Referenced by Bio.Nexus.Trees.Tree.randomize().

00341 
    def __init__(self, parent, pagesize='A3', orientation='landscape',
                 x=0.05, y=0.05, xl=None, xr=None, yt=None, yb=None,
                 start=None, end=None, tracklines=0):
        """ __init__(self, parent, pagesize='A3', orientation='landscape',
                 x=0.05, y=0.05, xl=None, xr=None, yt=None, yb=None,
                 start=None, end=None, tracklines=0)

            o parent    Diagram object containing the data that the drawer
                        draws

            o pagesize  String describing the ISO size of the image, or a tuple
                        of pixels

            o orientation   String describing the required orientation of the
                            final drawing ('landscape' or 'portrait')

            o x         Float (0->1) describing the relative size of the X
                        margins to the page

            o y         Float (0->1) describing the relative size of the Y
                        margins to the page

            o xl        Float (0->1) describing the relative size of the left X
                        margin to the page (overrides x)

            o xl        Float (0->1) describing the relative size of the left X
                        margin to the page (overrides x)

            o xr        Float (0->1) describing the relative size of the right X
                        margin to the page (overrides x)

            o yt        Float (0->1) describing the relative size of the top Y
                        margin to the page (overrides y)

            o yb        Float (0->1) describing the relative size of the lower Y
                        margin to the page (overrides y)

            o start     Int, the position to begin drawing the diagram at

            o end       Int, the position to stop drawing the diagram at

            o tracklines    Boolean flag to show (or not) lines delineating tracks
                            on the diagram            
        """
        self._parent = parent   # The calling Diagram object

        # Perform 'administrative' tasks of setting up the page
        self.set_page_size(pagesize, orientation)   # Set drawing size
        self.set_margins(x, y, xl, xr, yt, yb)      # Set page margins
        self.set_bounds(start, end) # Set limits on what will be drawn
        self.tracklines = tracklines    # Set flags
        

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index