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: object

Aesthetics 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__

bar_alpha

bar_edgecolor

bar_linewidth

bottom_adjust

figsize_height

figsize_width_per_source

filename

layout_nrows

legend_bbox_y

legend_fontsize

legend_title_fontsize

pct_label_fontsize

pct_label_fontweight

pct_label_min_threshold

stack_color_false

stack_color_true

title_color_davis

title_color_pkis2

title_fontsize

title_fontweight

xlabel_fontsize

xtick_fontsize

ylabel_fontsize

ylim_max

ytick_fontsize

__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