aider/benchmark
Paul Gauthier 73f99996df aider: Set bar color/fill style for each edit-format in show_stats function using a color map.
# Context:
USER: how can i set the bar color/fill style for each edit-format
ASSISTANT: To set the bar color/fill style for each edit-format, you need to modify the `show_stats` function in the `benchmark/benchmark.py` file.

Here are the steps:

1. Define a dictionary mapping each edit-format to a specific color or fill style.
2. Use the `color` or `fill` parameter in the `plot` function to set the color or fill style for each bar.

Here is the code change:

```python
benchmark/benchmark.py
<<<<<<< ORIGINAL
    fig, ax = plt.subplots(figsize=(10, 6))
    df_grouped2.unstack().plot(kind="barh", ax=ax)
=======
    fig, ax = plt.subplots(figsize=(10, 6))
    color_map = {"edit_format1": "blue", "edit_format2": "green", "edit_format3": "red"}  # Define your color map here
    df_grouped2.unstack().plot(kind="barh", ax=ax, color=[color_map[i] for i in df_grouped2.index])
>>>>>>> UPDATED
```

Please replace `"edit_format1"`, `"edit_format2"`, and `"edit_format3"` with your actual edit formats, and `"blue"`, `"green"`, and `"red"` with your desired colors.
2023-06-29 20:56:58 -07:00
..
__init__.py initial 2023-06-28 18:32:09 -07:00
benchmark.py aider: Set bar color/fill style for each edit-format in show_stats function using a color map. 2023-06-29 20:56:58 -07:00
docker.sh AIDER_BENCHMARK_DIR 2023-06-29 18:13:54 -07:00
docker_build.sh docker environment for the whole benchmark 2023-06-29 14:19:00 -07:00
Dockerfile show with imgcat 2023-06-29 19:04:48 -07:00
prompts.py move benchmark prompts into their own file 2023-06-28 18:25:39 -07:00
test_benchmark.py remove long ==--- lines to save tokens 2023-06-28 15:44:23 -07:00