Skip to content

Commit

Permalink
Improve chart generation
Browse files Browse the repository at this point in the history
  • Loading branch information
shBLOCK committed May 11, 2024
1 parent 0cb5682 commit 3af9717
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/charts.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Charts

on:
workflow_run:
workflows: [Benchmark]
types: [completed]
push:
branches: [master]
paths:
- benchmark/results/*.json
- benchmark/*chart*.py
- .github/workflows/charts.yml
workflow_dispatch:

jobs:
Expand Down
13 changes: 7 additions & 6 deletions benchmark/charting.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ def chart(result: BenchmarkResult, baseline: Subject, *, fig_height=5, subtitles
figsize=(len(tuple(result.benchmarks)) * 0.9 + 1, fig_height)
)

ax.set_facecolor("#161b22")
# Plot Background
ax.set_facecolor("#21262d")

# Background
bg_edge = 3
bg_edge = 2
bg = BackgroundFancyBboxPatch(
facecolor="#0d1117",
facecolor="#161b22",
linewidth=bg_edge,
edgecolor="#30363d",
figure=fig
Expand Down Expand Up @@ -129,12 +130,12 @@ def chart(result: BenchmarkResult, baseline: Subject, *, fig_height=5, subtitles
temp.values(), temp.keys(),
loc="upper left",
labelcolor=_TEXT,
facecolor="#2b2d30",
edgecolor="#2b2d30",
facecolor="#3d3f42",
edgecolor="#3d3f42",
fancybox = True,
framealpha = 0.5
)
legend.legendPatch.set_boxstyle("round", rounding_size=1)
legend.legendPatch.set_boxstyle("round", rounding_size=0.5)

fig.tight_layout(pad=1)

Expand Down
4 changes: 0 additions & 4 deletions benchmark/charts/README.md

This file was deleted.

0 comments on commit 3af9717

Please sign in to comment.