From 6b1f294d09fc6b323340a7d20b7503cb9d5e99d7 Mon Sep 17 00:00:00 2001 From: Sam Hadow Date: Wed, 14 May 2025 21:21:15 +0200 Subject: [PATCH] axis names --- main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.py b/main.py index d11f40d..d56dcd7 100644 --- a/main.py +++ b/main.py @@ -84,7 +84,6 @@ def plot_curves(alpha_values, pagerank_iterations, gauss_seidel_iterations, page # 1: Number of iterations ax1.plot(alpha_values, pagerank_iterations, label="PageRank Iterations", color="blue") ax1.plot(alpha_values, gauss_seidel_iterations, label="Gauß-Seidel Iterations", color="red") - ax1.set_xlabel("α") ax1.set_ylabel("Number of Iterations") ax1.set_title("Iterations vs. α") ax1.legend() @@ -93,7 +92,6 @@ def plot_curves(alpha_values, pagerank_iterations, gauss_seidel_iterations, page # 2: Execution time ax2.plot(alpha_values, pagerank_times, label="PageRank Time", color="blue") ax2.plot(alpha_values, gauss_seidel_times, label="Gauß-Seidel Time", color="red") - ax2.set_xlabel("α") ax2.set_ylabel("Time (seconds)") ax2.set_title("Execution Time vs. α") ax2.legend() @@ -103,7 +101,7 @@ def plot_curves(alpha_values, pagerank_iterations, gauss_seidel_iterations, page ax3.plot(alpha_values, diff_norms, label="Difference Norm", color="green") ax3.set_xlabel("α") ax3.set_ylabel("Norm Difference") - ax3.set_title("Difference Norm between PageRank and Gauß-Seidel vs. α") + ax3.set_title("Norm Difference between PageRank and Gauß-Seidel vs. α") ax3.legend() ax3.grid(True)