Display a grouping of distributions on a page.
This organizes Distributions, and will display them nicely
on a single page.
Methods
|
|
__init__
_draw_distributions
_draw_legend
_draw_title
draw
|
|
__init__
|
__init__ ( self, output_format='pdf' )
|
|
_draw_distributions
|
_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:
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
|
_draw_legend (
self,
cur_drawing,
start_y,
width,
)
Add a legend to the figure.
Subclasses can implement to provide a specialized legend.
|
|
_draw_title
|
_draw_title (
self,
cur_drawing,
title,
width,
height,
)
Add the title of the figure to the drawing.
|
|
draw
|
draw (
self,
output_file,
title,
)
Draw out the distribution information.
Arguments:
Exceptions
|
|
ValueError( "Invalid output format %s" % self.output_format )
|
|
|