mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
Updated image file format from SVG to PNG and added imgcat library for displaying the plot.
This commit is contained in:
parent
8d670f187c
commit
49eb72cc20
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ import matplotlib.pyplot as plt
|
|||
import yaml
|
||||
from datetime import datetime
|
||||
from matplotlib import rc
|
||||
from imgcat import imgcat
|
||||
|
||||
def plot_over_time(yaml_file):
|
||||
with open(yaml_file, 'r') as file:
|
||||
|
@ -34,7 +35,7 @@ def plot_over_time(yaml_file):
|
|||
ax.set_ylabel('Pass Rate 2')
|
||||
ax.set_title('Model Performance Over Time')
|
||||
plt.tight_layout()
|
||||
plt.savefig("tmp_over_time.svg")
|
||||
plt.savefig("tmp_over_time.png")
|
||||
imgcat(fig)
|
||||
|
||||
# Example usage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue