plot plot
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user