qis.plot_vbars¶
- qis.plot_vbars(df, title=None, fontsize=10, add_bar_values=True, add_bar_perc_values=False, var_format='{:.1%}', legend_loc='upper center', bbox_to_anchor=(0.5, 1.04), totals=None, colors=None, legend_labels=None, legend_colors=None, x_rotation=0, xmin_shift=None, add_bar_value_at_mid=True, add_total_bar=True, total_bar_linewidth=2, total_bar_linestyle='-', add_total_to_index=False, add_total_to_left=False, is_category_names_colors=True, x_step=None, x_limits=None, reverse_columns=True, rows_edge_lines=None, axvline_color='orange', xlabel=None, ax=None, **kwargs)[source]¶
Plot signed, stacked horizontal bars without relabeling caller data.
- Parameters:
df (DataFrame | Series) – Row-indexed observations with one bar segment per column, or a Series.
totals (List[float]) – Supplied row totals; computed from the plotted values when omitted.
add_total_to_index (bool) – Append supplied totals to displayed row labels only.
ax (Axes) – Axes to draw on; create a figure when omitted.
title (str | None)
fontsize (int)
add_bar_values (bool)
add_bar_perc_values (bool)
var_format (str)
legend_loc (str | None)
x_rotation (int)
xmin_shift (float | None)
add_bar_value_at_mid (bool)
add_total_bar (bool)
total_bar_linewidth (int)
total_bar_linestyle (str)
add_total_to_left (bool)
is_category_names_colors (bool)
x_step (float | None)
reverse_columns (bool)
axvline_color (str | None)
xlabel (str)
- Returns:
The new figure when ax is omitted, otherwise None.
- Return type: