feat: Improve graph visualization and add debugging
The changes made in this commit include:
1. Adjusting the y-axis limit to 100 to accommodate the higher pass rate values.
2. Rotating the x-axis labels for better readability.
3. Adding debug print statements to track the progress of figure generation and display.
4. Increasing the figure size for better visibility.
5. Adding additional debugging to ensure the data is being plotted correctly.
These improvements should help with the visualization and debugging of the graph generation process.
# Aider chat conversation:
USER: KeyError: 'Unrecognized key "font.color" for group "font" and name "color"'
ASSISTANT: To fix the `KeyError` related to the unrecognized key "font.color", we need to set the font color using `plt.rcParams` instead of `rc`.
Here are the changes:
benchmark/swe_bench_lite.py
```python
<<<<<<< SEARCH
rc("font", **{"family": "sans-serif", "sans-serif": ["Helvetica"], "size": 10, "color": "#444444"})
=======
rc("font", **{"family": "sans-serif", "sans-serif": ["Helvetica"], "size": 10})
plt.rcParams["text.color"] = "#444444"
>>>>>>> REPLACE
```
benchmark/over_time.py
```python
<<<<<<< SEARCH
rc("font", **{"family": "sans-serif", "sans-serif": ["Helvetica"], "size": 10, "color": "#444444"})
=======
rc("font", **{"family": "sans-serif", "sans-serif": ["Helvetica"], "size": 10})
plt.rcParams["text.color"] = "#444444"
>>>>>>> REPLACE
```
# Aider chat conversation:
USER: make the font color dark grey not black
ASSISTANT: Here are the changes to make the font color dark grey instead of black in `benchmark/swe_bench_lite.py` and `benchmark/over_time.py`:
benchmark/swe_bench_lite.py
```python
<<<<<<< SEARCH
rc("font", **{"family": "sans-serif", "sans-serif": ["Helvetica"], "size": 10})
=======
rc("font", **{"family": "sans-serif", "sans-serif": ["Helvetica"], "size": 10, "color": "#444444"})
>>>>>>> REPLACE
```
benchmark/over_time.py
```python
<<<<<<< SEARCH
rc("font", **{"family": "sans-serif", "sans-serif": ["Helvetica"], "size": 10})
=======
rc("font", **{"family": "sans-serif", "sans-serif": ["Helvetica"], "size": 10, "color": "#444444"})
>>>>>>> REPLACE
```
# Aider chat conversation:
USER: add more whitespace around the perimeter
ASSISTANT: Here are the changes to add more whitespace around the perimeter in `benchmark/swe_bench_lite.py` and `benchmark/over_time.py`:
benchmark/swe_bench_lite.py
```python
<<<<<<< SEARCH
plt.tight_layout()
=======
plt.tight_layout(pad=3.0)
>>>>>>> REPLACE
```
benchmark/over_time.py
```python
<<<<<<< SEARCH
plt.tight_layout()
=======
plt.tight_layout(pad=3.0)
>>>>>>> REPLACE
```
# Aider chat conversation:
USER: make the model labels on the x axis larger
ASSISTANT: Here are the changes to make the model labels on the x-axis larger in `benchmark/swe_bench_lite.py` and `benchmark/over_time.py`:
benchmark/swe_bench_lite.py
```python
<<<<<<< SEARCH
plt.xticks(rotation=45, ha='right')
=======
plt.xticks(rotation=45, ha='right', fontsize=14)
>>>>>>> REPLACE
```
benchmark/over_time.py
```python
<<<<<<< SEARCH
plt.tight_layout()
=======
plt.xticks(fontsize=14)
plt.tight_layout()
>>>>>>> REPLACE
```
# Aider chat conversation:
USER: make the y-axis go to 30
ASSISTANT: Here are the changes to make the y-axis go to 30 in `benchmark/swe_bench_lite.py`:
benchmark/swe_bench_lite.py
```python
<<<<<<< SEARCH
plt.xticks(rotation=45, ha='right')
=======
ax.set_ylim(0, 30)
plt.xticks(rotation=45, ha='right')
>>>>>>> REPLACE
```
Here are the changes to make the y-axis go to 30 in `benchmark/over_time.py`:
benchmark/over_time.py
```python
<<<<<<< SEARCH
plt.tight_layout()
=======
ax.set_ylim(0, 30)
plt.tight_layout()
>>>>>>> REPLACE
```