Package Bio :: Package Graphics :: Module Distribution :: Class DistributionPage
[hide private]
[frames] | no frames]

Class DistributionPage

source code

object --+
         |
        DistributionPage

Display a grouping of distributions on a page.

This organizes Distributions, and will display them nicely
on a single page.

Instance Methods [hide private]
 
__init__(self, output_format='pdf')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
draw(self, output_file, title)
Draw out the distribution information.
source code
 
_draw_title(self, cur_drawing, title, width, height)
Add the title of the figure to the drawing (PRIVATE).
source code
 
_draw_distributions(self, cur_drawing, start_x_pos, x_pos_change, start_y_pos, y_pos_change, num_y_drawings)
Draw all of the distributions on the page.
source code
 
_draw_legend(self, cur_drawing, start_y, width)
Add a legend to the figure.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, output_format='pdf')
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

draw(self, output_file, title)

source code 
Draw out the distribution information.

Arguments:

 - output_file - The name of the file to output the information to,
   or a handle to write to.
 - title - A title to display on the graphic.

_draw_distributions(self, cur_drawing, start_x_pos, x_pos_change, start_y_pos, y_pos_change, num_y_drawings)

source code 
Draw all of the distributions on the page.

Arguments:

 - cur_drawing - The drawing we are working with.
 - start_x_pos - The x position on the page to start drawing at.
 - x_pos_change - The change in x position between each figure.
 - start_y_pos - The y position on the page to start drawing at.
 - y_pos_change - The change in y position between each figure.
 - num_y_drawings - The number of drawings we'll have in the y
   (up/down) direction.

_draw_legend(self, cur_drawing, start_y, width)

source code 
Add a legend to the figure.

Subclasses can implement to provide a specialized legend.