mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05: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
|
import yaml
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from matplotlib import rc
|
from matplotlib import rc
|
||||||
|
from imgcat import imgcat
|
||||||
|
|
||||||
def plot_over_time(yaml_file):
|
def plot_over_time(yaml_file):
|
||||||
with open(yaml_file, 'r') as 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_ylabel('Pass Rate 2')
|
||||||
ax.set_title('Model Performance Over Time')
|
ax.set_title('Model Performance Over Time')
|
||||||
plt.tight_layout()
|
plt.tight_layout()
|
||||||
plt.savefig("tmp_over_time.svg")
|
plt.savefig("tmp_over_time.png")
|
||||||
imgcat(fig)
|
imgcat(fig)
|
||||||
|
|
||||||
# Example usage
|
# Example usage
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue