(ax, title, xlabel, ylabel)
| 429 | |
| 430 | |
| 431 | def _apply_base_style(ax, title, xlabel, ylabel): |
| 432 | ax.set_facecolor(CHART_BG) |
| 433 | ax.set_title(title, fontsize=11, fontweight="bold", color=CHART_COLOR_DARK, pad=10) |
| 434 | ax.set_xlabel(xlabel, fontsize=9, color=CHART_COLOR_DARK) |
| 435 | ax.set_ylabel(ylabel, fontsize=9, color=CHART_COLOR_DARK) |
| 436 | ax.tick_params(colors=CHART_COLOR_DARK, labelsize=8) |
| 437 | ax.spines["top"].set_visible(False) |
| 438 | ax.spines["right"].set_visible(False) |
| 439 | ax.spines["left"].set_color(CHART_GRID) |
| 440 | ax.spines["bottom"].set_color(CHART_GRID) |
| 441 | ax.yaxis.grid(True, color=CHART_GRID, linewidth=0.8, linestyle="--") |
| 442 | ax.set_axisbelow(True) |
| 443 | |
| 444 | |
| 445 | def chart_1_pass_rate(naive_rate, cl_rate, ax): |
no outgoing calls
no test coverage detected