mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
feat: Add LABEL_FONT_SIZE constant for dot label font size
This commit is contained in:
parent
eb5317f8e5
commit
1c85afa320
1 changed files with 9 additions and 7 deletions
|
@ -5,6 +5,8 @@ from matplotlib import rc
|
||||||
|
|
||||||
from aider.dump import dump # noqa: 401
|
from aider.dump import dump # noqa: 401
|
||||||
|
|
||||||
|
LABEL_FONT_SIZE = 12 # Font size for scatter plot dot labels
|
||||||
|
|
||||||
|
|
||||||
def get_legend_label(model):
|
def get_legend_label(model):
|
||||||
model = model.lower()
|
model = model.lower()
|
||||||
|
@ -144,7 +146,7 @@ def plot_over_time(yaml_file):
|
||||||
textcoords="offset points",
|
textcoords="offset points",
|
||||||
color="purple",
|
color="purple",
|
||||||
alpha=0.8,
|
alpha=0.8,
|
||||||
fontsize=12,
|
fontsize=LABEL_FONT_SIZE,
|
||||||
)
|
)
|
||||||
|
|
||||||
if red_points:
|
if red_points:
|
||||||
|
@ -159,7 +161,7 @@ def plot_over_time(yaml_file):
|
||||||
textcoords="offset points",
|
textcoords="offset points",
|
||||||
color="red",
|
color="red",
|
||||||
alpha=0.8,
|
alpha=0.8,
|
||||||
fontsize=12,
|
fontsize=LABEL_FONT_SIZE,
|
||||||
)
|
)
|
||||||
|
|
||||||
if green_points:
|
if green_points:
|
||||||
|
@ -174,7 +176,7 @@ def plot_over_time(yaml_file):
|
||||||
textcoords="offset points",
|
textcoords="offset points",
|
||||||
color="green",
|
color="green",
|
||||||
alpha=0.8,
|
alpha=0.8,
|
||||||
fontsize=12,
|
fontsize=LABEL_FONT_SIZE,
|
||||||
)
|
)
|
||||||
|
|
||||||
if orange_points:
|
if orange_points:
|
||||||
|
@ -189,7 +191,7 @@ def plot_over_time(yaml_file):
|
||||||
textcoords="offset points",
|
textcoords="offset points",
|
||||||
color="orange",
|
color="orange",
|
||||||
alpha=0.8,
|
alpha=0.8,
|
||||||
fontsize=12,
|
fontsize=LABEL_FONT_SIZE,
|
||||||
)
|
)
|
||||||
|
|
||||||
if brown_points:
|
if brown_points:
|
||||||
|
@ -219,7 +221,7 @@ def plot_over_time(yaml_file):
|
||||||
textcoords="offset points",
|
textcoords="offset points",
|
||||||
color="pink",
|
color="pink",
|
||||||
alpha=0.8,
|
alpha=0.8,
|
||||||
fontsize=12,
|
fontsize=LABEL_FONT_SIZE,
|
||||||
)
|
)
|
||||||
|
|
||||||
if qwen_points:
|
if qwen_points:
|
||||||
|
@ -234,7 +236,7 @@ def plot_over_time(yaml_file):
|
||||||
textcoords="offset points",
|
textcoords="offset points",
|
||||||
color="darkblue",
|
color="darkblue",
|
||||||
alpha=0.8,
|
alpha=0.8,
|
||||||
fontsize=12,
|
fontsize=LABEL_FONT_SIZE,
|
||||||
)
|
)
|
||||||
|
|
||||||
if mistral_points:
|
if mistral_points:
|
||||||
|
@ -249,7 +251,7 @@ def plot_over_time(yaml_file):
|
||||||
textcoords="offset points",
|
textcoords="offset points",
|
||||||
color="cyan",
|
color="cyan",
|
||||||
alpha=0.8,
|
alpha=0.8,
|
||||||
fontsize=12,
|
fontsize=LABEL_FONT_SIZE,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Plot points without legend
|
# Plot points without legend
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue