From 486e6c30010f8a784fdb40449d270efc4d7dc4ae Mon Sep 17 00:00:00 2001 From: kai Date: Sun, 1 Jun 2025 16:07:24 +0200 Subject: [PATCH] plot plot --- lab10/jacobi/plot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lab10/jacobi/plot.py b/lab10/jacobi/plot.py index 0a007b5..8f9d404 100644 --- a/lab10/jacobi/plot.py +++ b/lab10/jacobi/plot.py @@ -10,15 +10,15 @@ par_data = plt.loadtxt("result_parallel.asc") plt.figure() plt.subplot(221) plt.title("Serial initial condition") -plt.contourf(ser_init, cmap='jet', levels=100) +plt.contourf(ser_init, cmap="jet", levels=100) plt.subplot(222) plt.title("Parallel initial condition") -plt.contourf(par_init, cmap='jet', levels=100) +plt.contourf(par_init, cmap="jet", levels=100) plt.subplot(223) plt.title("Serial result") -plt.contourf(ser_data, cmap='jet', levels=100) +plt.contourf(ser_data, cmap="jet", levels=100) plt.subplot(224) plt.title("Parallel result") plt.contourf(par_data, cmap="jet", levels=100) -plt.show() +plt.savefig("result.png")