import numpy as np
import matplotlib.pyplot as plt
p = np.array([1, 2, 4, 8, 12, 16])
# Lid-driven cavity with size
# 20x20
time_20 = np.array([1.732, 0.701, 0.784, 1.881, 5.665, 5.666])
# 40x40
time_40 = np.array([6.54, 4.839, 3.091, 3.24, 20.0, 52.67])
time_40 = np.array([5.95, 3.904, 2.826, 3.271, 20.276, 21.042])
# 40x40
# simple decomposition
# 80x80
time_80 = np.array([90, 53, 34.4, 31.2, 100, 101])
plt.plot(p, time_20)
plt.show()
plt.bar(p, time_80)
plt.show()
Ich habe mal folgendes Programm, was etwas plottet:
Ich mache das noch etwas schöner