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

Class DistributionPage

source code

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') 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.
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
Method Details [hide private]

draw(self, output_file, title)

source code 

Draw out the distribution information.

Arguments:

o output_file - The name of the file to output the information to.

o 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:

o cur_drawing - The drawing we are working with.

o start_x_pos - The x position on the page to start drawing at.

o x_pos_change - The change in x position between each figure.

o start_y_pos - The y position on the page to start drawing at.

o y_pos_change - The change in y position between each figure.

o 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.