BarGraph.__init__#
missionbio.plotting.bargraph.BarGraph.__init__
- BarGraph.__init__(data: Series, palette: Optional[Dict] = None, text: Optional[Sequence] = None, title: str = '') None #
- Parameters:
- datapd.Series
The data to plot. The index must be the names of the bars and the values must be the heights of the bars.
- paletteOptional[Dict]
A dictionary mapping the index of the data to a color. If None, the default palette is used.
- textOptional[Sequence]
A list of text to display on the right of the bars. If None, no value is displayed. If the length of the list is less than the length of the data, the remaining values are not displayed.
- titlestr
The title of the plot
< Class BarGraph