График

This commit is contained in:
2026-03-17 09:04:26 +03:00
parent 32f8e92bcb
commit 6f718668c8
4 changed files with 6 additions and 16 deletions

View File

@@ -42,11 +42,10 @@ def plot_time(output_path: Path) -> None:
marker="s",
linewidth=2.2,
color="#d62728",
label="CUDA-реализация",
label="Собственная реализация",
)
plt.xlabel("Размер матрицы N")
plt.ylabel("Время решения, мс")
plt.title("Сравнение времени решения")
plt.legend(loc="upper left")
plt.tight_layout()
plt.savefig(output_path, bbox_inches="tight")
@@ -69,11 +68,10 @@ def plot_gflops(output_path: Path) -> None:
marker="s",
linewidth=2.2,
color="#d62728",
label="CUDA-реализация",
label="Собственная реализация",
)
plt.xlabel("Размер матрицы N")
plt.ylabel("Производительность, GFLOPS")
plt.title("Сравнение производительности")
plt.legend(loc="upper left")
plt.tight_layout()
plt.savefig(output_path, bbox_inches="tight")