biopython v1.71.0 Bio.Graphics.Distribution.BarChartDistribution

Display the distribution of values as a bunch of bars.

Link to this section Summary

Functions

Initialize a Bar Chart display of distribution info

Calculate the position of the chart with blank space (PRIVATE)

Add the title of the figure to the drawing (PRIVATE)

Draw a bar chart with the info in the specified range

Link to this section Functions

Initialize a Bar Chart display of distribution info.

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.
Link to this function _determine_position()

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.

Add the title of the figure to the drawing (PRIVATE).

Draw a bar chart with the info in the specified range.