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

Class BarChartDistribution

source code

object --+
         |
        BarChartDistribution

Display the distribution of values as a bunch of bars.

Instance Methods [hide private]
 
__init__(self, display_info=[])
Initialize a Bar Chart display of distribution info.
source code
 
draw(self, cur_drawing, start_x, start_y, end_x, end_y)
Draw a bar chart with the info in the specified range.
source code
 
_draw_title(self, cur_drawing, title, start_x, start_y, end_x, end_y)
Add the title of the figure to the drawing (PRIVATE).
source code
 
_determine_position(self, start_x, start_y, end_x, end_y)
Calculate the position of the chart with blank space (PRIVATE).
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, display_info=[])
(Constructor)

source code 
Initialize a Bar Chart display of distribution info.

Class attributes:

 - display_info - the information to be displayed in the distribution.
   This should be ordered as a list of lists, where each internal list
   is a data set to display in the bar chart.

Overrides: object.__init__

_determine_position(self, start_x, start_y, end_x, end_y)

source code 
Calculate the position of the chart with blank space (PRIVATE).

This uses some padding around the chart, and takes into account
whether the chart has a title. It returns 4 values, which are,
in order, the x_start, x_end, y_start and y_end of the chart
itself.