Adapted copy logic of images.
This commit is contained in:
@@ -43,11 +43,11 @@ class Visualizer:
|
||||
# ---- Styling options ------------------------------------------
|
||||
font_sizes: dict | None = None, # {'axes':12,'ticks':10,'legend':10,'barlabel':8,'title':13}
|
||||
hatch_cycle: tuple[str, ...] = ("///", "..", "**", "++", "..", "oo", "**"),
|
||||
bar_alpha: float = 0.9,
|
||||
bar_alpha: float = 1,
|
||||
annotate: bool = True,
|
||||
annotate_fmt: str = "{v:.1f}", # no % sign as requested
|
||||
barlabel_padding: int = 2,
|
||||
top_padding: float = 0.06, # 6% headroom
|
||||
top_padding: float = 0.01, # 6% headroom
|
||||
legend_ncols: int | None = None,
|
||||
percent_axis: bool = True, # keep % on the y-axis ticks
|
||||
):
|
||||
@@ -73,7 +73,7 @@ class Visualizer:
|
||||
pivot.plot(kind="bar", ax=ax, edgecolor="black", linewidth=0.6)
|
||||
|
||||
# ---------------- Font sizes ------------------------------------
|
||||
fs = dict(title=13, axes=12, ticks=12, legend=12, barlabel=6)
|
||||
fs = dict(title=13, axes=13, ticks=13, legend=11, barlabel=6.3)
|
||||
if font_sizes:
|
||||
fs.update(font_sizes)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user