Display the distribution of values as a bunch of bars.
Methods
|
|
__init__
_determine_position
_draw_title
draw
|
|
__init__
|
__init__ ( self, display_info=[] )
Initialize a Bar Chart display of distribution info.
Class attributes:
|
|
_determine_position
|
_determine_position (
self,
start_x,
start_y,
end_x,
end_y,
)
Calculate the position of the chart with blank space.
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.
|
|
_draw_title
|
_draw_title (
self,
cur_drawing,
title,
start_x,
start_y,
end_x,
end_y,
)
Add the title of the figure to the drawing.
|
|
draw
|
draw (
self,
cur_drawing,
start_x,
start_y,
end_x,
end_y,
)
Draw a bar chart with the info in the specified range.
|
|