mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-05 04:05:04 +00:00
new svg
This commit is contained in:
parent
958376bba7
commit
8f4a823855
2 changed files with 368 additions and 1328 deletions
File diff suppressed because it is too large
Load diff
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 58 KiB |
|
@ -114,9 +114,9 @@ def show_stats(dirnames):
|
||||||
|
|
||||||
from matplotlib import rc
|
from matplotlib import rc
|
||||||
|
|
||||||
rc("font", **{"family": "sans-serif", "sans-serif": ["Helvetica"], "size": 13})
|
rc("font", **{"family": "sans-serif", "sans-serif": ["Helvetica"], "size": 10})
|
||||||
|
|
||||||
fig, ax = plt.subplots(figsize=(7.5, 5))
|
fig, ax = plt.subplots(figsize=(6, 4))
|
||||||
ax.grid(axis="y", zorder=0, lw=0.2)
|
ax.grid(axis="y", zorder=0, lw=0.2)
|
||||||
|
|
||||||
zorder = 1
|
zorder = 1
|
||||||
|
@ -135,7 +135,7 @@ def show_stats(dirnames):
|
||||||
if zorder > 1:
|
if zorder > 1:
|
||||||
edge = dict(
|
edge = dict(
|
||||||
edgecolor="#ffffff",
|
edgecolor="#ffffff",
|
||||||
linewidth=2.5,
|
linewidth=1.5,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
edge = dict()
|
edge = dict()
|
||||||
|
@ -143,7 +143,7 @@ def show_stats(dirnames):
|
||||||
edge["label"] = fmt
|
edge["label"] = fmt
|
||||||
|
|
||||||
color = "#b3e6a8" if "diff" in fmt else "#b3d1e6"
|
color = "#b3e6a8" if "diff" in fmt else "#b3d1e6"
|
||||||
hatch = "*" if "func" in fmt else ""
|
hatch = "//" if "func" in fmt else ""
|
||||||
rects = ax.bar(
|
rects = ax.bar(
|
||||||
pos + i * width,
|
pos + i * width,
|
||||||
df[fmt],
|
df[fmt],
|
||||||
|
@ -154,7 +154,7 @@ def show_stats(dirnames):
|
||||||
**edge,
|
**edge,
|
||||||
)
|
)
|
||||||
if zorder == 2:
|
if zorder == 2:
|
||||||
ax.bar_label(rects, padding=4, labels=[f"{v:.0f}%" for v in df[fmt]], size=10)
|
ax.bar_label(rects, padding=4, labels=[f"{v:.0f}%" for v in df[fmt]], size=6)
|
||||||
|
|
||||||
if len(repeats):
|
if len(repeats):
|
||||||
ax.errorbar(
|
ax.errorbar(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue