(ax: Any, factor: float = 0.6)
| 91 | |
| 92 | |
| 93 | def rescale_barplot_width(ax: Any, factor: float = 0.6) -> None: |
| 94 | for bar in ax.patches: |
| 95 | x = bar.get_x() |
| 96 | new_width = bar.get_width() * factor |
| 97 | center = x + bar.get_width() / 2.0 |
| 98 | bar.set_width(new_width) |
| 99 | bar.set_x(center - new_width / 2.0) |
| 100 | |
| 101 | |
| 102 | def column_alias(name: str) -> str: |
nothing calls this directly
no outgoing calls
no test coverage detected