mkt.databases.plot_config.StackedBarchartConfig
- class mkt.databases.plot_config.StackedBarchartConfig(figsize_width_per_source: float = 12, figsize_height: float = 7, layout_nrows: int = 1, stack_color_true: str = '#d3d3d3', stack_color_false: str = '#505050', bar_edgecolor: str = 'black', bar_linewidth: float = 0.5, bar_alpha: float = 1.0, pct_label_fontsize: int = 20, pct_label_fontweight: str = 'bold', pct_label_min_threshold: float = 5, xtick_fontsize: int = 16, xlabel_fontsize: int = 24, ylabel_fontsize: int = 24, title_fontsize: int = 26, title_fontweight: str = 'bold', ytick_fontsize: int = 18, ylim_max: float = 105, legend_fontsize: int = 20, legend_title_fontsize: int = 20, legend_bbox_y: float = -0.1, bottom_adjust: float = 0.2, title_color_davis: str = 'black', title_color_pkis2: str = 'black', filename: str = 'stacked_barchart')[source]
Bases:
objectAesthetics for the stacked bar chart.
- __init__(figsize_width_per_source: float = 12, figsize_height: float = 7, layout_nrows: int = 1, stack_color_true: str = '#d3d3d3', stack_color_false: str = '#505050', bar_edgecolor: str = 'black', bar_linewidth: float = 0.5, bar_alpha: float = 1.0, pct_label_fontsize: int = 20, pct_label_fontweight: str = 'bold', pct_label_min_threshold: float = 5, xtick_fontsize: int = 16, xlabel_fontsize: int = 24, ylabel_fontsize: int = 24, title_fontsize: int = 26, title_fontweight: str = 'bold', ytick_fontsize: int = 18, ylim_max: float = 105, legend_fontsize: int = 20, legend_title_fontsize: int = 20, legend_bbox_y: float = -0.1, bottom_adjust: float = 0.2, title_color_davis: str = 'black', title_color_pkis2: str = 'black', filename: str = 'stacked_barchart') None
Methods
__eq__(other)Return self==value.
__init__([figsize_width_per_source, ...])Attributes
__dataclass_fields____dataclass_params____match_args__- __init__(figsize_width_per_source: float = 12, figsize_height: float = 7, layout_nrows: int = 1, stack_color_true: str = '#d3d3d3', stack_color_false: str = '#505050', bar_edgecolor: str = 'black', bar_linewidth: float = 0.5, bar_alpha: float = 1.0, pct_label_fontsize: int = 20, pct_label_fontweight: str = 'bold', pct_label_min_threshold: float = 5, xtick_fontsize: int = 16, xlabel_fontsize: int = 24, ylabel_fontsize: int = 24, title_fontsize: int = 26, title_fontweight: str = 'bold', ytick_fontsize: int = 18, ylim_max: float = 105, legend_fontsize: int = 20, legend_title_fontsize: int = 20, legend_bbox_y: float = -0.1, bottom_adjust: float = 0.2, title_color_davis: str = 'black', title_color_pkis2: str = 'black', filename: str = 'stacked_barchart') None
- bar_alpha: float = 1.0
- bar_edgecolor: str = 'black'
- bar_linewidth: float = 0.5
- bottom_adjust: float = 0.2
- figsize_height: float = 7
- figsize_width_per_source: float = 12
- filename: str = 'stacked_barchart'
- layout_nrows: int = 1
- legend_bbox_y: float = -0.1
- legend_fontsize: int = 20
- legend_title_fontsize: int = 20
- pct_label_fontsize: int = 20
- pct_label_fontweight: str = 'bold'
- pct_label_min_threshold: float = 5
- stack_color_false: str = '#505050'
- stack_color_true: str = '#d3d3d3'
- title_color_davis: str = 'black'
- title_color_pkis2: str = 'black'
- title_fontsize: int = 26
- title_fontweight: str = 'bold'
- xlabel_fontsize: int = 24
- xtick_fontsize: int = 16
- ylabel_fontsize: int = 24
- ylim_max: float = 105
- ytick_fontsize: int = 18