MCPcopy Create free account
hub / github.com/Emmimal/control-layer / _apply_base_style

Function _apply_base_style

demo.py:431–442  ·  view source on GitHub ↗
(ax, title, xlabel, ylabel)

Source from the content-addressed store, hash-verified

429
430
431def _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
445def chart_1_pass_rate(naive_rate, cl_rate, ax):

Callers 5

chart_1_pass_rateFunction · 0.85
chart_2_failure_distFunction · 0.85
chart_3_retry_distFunction · 0.85
chart_4_latencyFunction · 0.85
chart_6_quality_scoresFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected