From e6e9cc9ce84539813e7e14fae5cdf3d4466fdeaf Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 26 Jun 2026 15:21:26 +0200 Subject: Added runs and script --- scripts/python/graph.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/python/graph.py b/scripts/python/graph.py index ab42154..cb3802d 100755 --- a/scripts/python/graph.py +++ b/scripts/python/graph.py @@ -42,16 +42,18 @@ y_cos2 = np.sin((np.pi / 2.0) * x) ** 2 y_cos2_shift = np.sin((np.pi / 2.0) * (x+0.125)/1.25) ** 2 +y_cos2_shift_15 = np.sin((np.pi / 2.0) * (x+0.25)/1.5) ** 2 # Plot plt.figure(figsize=(8, 6)) -plt.plot(x, y_linear, label="y = x", linewidth=2) -plt.step(x, y_step, where="post", label="PSM subgrid of 8", linewidth=2) +plt.plot(x, y_linear, label="Real fill", linewidth=2) +plt.step(x, y_step, where="post", label="PSM subgrid of 4", linewidth=2) plt.step(x, y_step2, where="post", label="PSM subgrid of 8", linewidth=2) plt.plot(x, y_cos2, label=r'HLBM e_h:cell size 1:1', linewidth=2) plt.plot(x, y_cos2_shift, label=r'HLBM e_h:cell size 1.25:1', linewidth=2) +plt.plot(x, y_cos2_shift_15, label=r'HLBM e_h:cell size 1.5:1', linewidth=2) plt.xlim(0, 1) plt.ylim(0, 1) @@ -60,6 +62,6 @@ plt.legend() plt.xlabel("x") plt.ylabel("y") -plt.title("Linear + Step + Smooth Cos² Ramp") +plt.title("Fill level depending on used method") plt.show() -- cgit v1.2.3