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

Class DistributionPage


Display a grouping of distributions on a page.

This organizes Distributions, and will display them nicely on a single page.
Method Summary
  __init__(self, output_format)
  draw(self, output_file, title)
Draw out the distribution information.
  _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.
  _draw_legend(self, cur_drawing, start_y, width)
Add a legend to the figure.
  _draw_title(self, cur_drawing, title, width, height)
Add the title of the figure to the drawing.

Method Details

draw(self, output_file, title)

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)

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)

Add a legend to the figure.

Subclasses can implement to provide a specialized legend.

_draw_title(self, cur_drawing, title, width, height)

Add the title of the figure to the drawing.

Generated by Epydoc 2.1 on Wed Jan 31 09:57:59 2007 http://epydoc.sf.net