From 05ec2574b277820e0e07dc56392add19ecbc6565 Mon Sep 17 00:00:00 2001 From: Kuster Yanik Date: Fri, 29 Jul 2022 17:41:50 +0200 Subject: polished teil0 und teil1, created a new figure Strategie.pdf --- buch/papers/lambertw/Bilder/Strategie.py | 52 ++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 buch/papers/lambertw/Bilder/Strategie.py (limited to 'buch/papers/lambertw/Bilder/Strategie.py') diff --git a/buch/papers/lambertw/Bilder/Strategie.py b/buch/papers/lambertw/Bilder/Strategie.py new file mode 100644 index 0000000..b9b41bf --- /dev/null +++ b/buch/papers/lambertw/Bilder/Strategie.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +""" +Created on Fri Jul 29 09:40:11 2022 + +@author: yanik +""" +import pylatex + +import numpy as np +import matplotlib.pyplot as plt + +N = np.array([0, 0]) +V = np.array([1, 4]) +Z = np.array([5, 5]) +VZ = Z-V +vzScale = 0.4 + + +a = [N, N, V] +b = [V, Z, vzScale*VZ] + +X = np.array([i[0] for i in a]) +Y = np.array([i[1] for i in a]) +U = np.array([i[0] for i in b]) +W = np.array([i[1] for i in b]) + +xlim = 6 +ylim = 6 +fig, ax = plt.subplots(1,1) +ax.set_xlim([0, xlim]) #<-- set the x axis limits +ax.set_ylim([0, ylim]) #<-- set the y axis limits +#plt.figure(figsize=(xlim, ylim)) +ax.quiver(X, Y, U, W, angles='xy', scale_units='xy', scale=1, headwidth=5, headlength=7, headaxislength=5.5) + +ax.plot([V[0], (VZ+V)[0]], [V[1], (VZ+V)[1]], 'k--') +ax.plot(np.vstack([V, Z])[:, 0], np.vstack([V, Z])[:,1], 'bo', markersize=10) + + +ax.text(2.5, 4.5, "Visierlinie", size=20, rotation=10) + +plt.rcParams.update({ + "text.usetex": True, + "font.family": "serif", + "font.serif": ["New Century Schoolbook"], +}) + +ax.text(1.6, 4.3, r"$\vec{v}$", size=30) +ax.text(0.6, 3.9, r"$V$", size=30, c='b') +ax.text(5.1, 4.77, r"$Z$", size=30, c='b') + + + -- cgit v1.2.1 From 8dc531ac53ae1b085482c9f1bda6001ca803c164 Mon Sep 17 00:00:00 2001 From: Kuster Yanik Date: Tue, 2 Aug 2022 21:14:53 +0200 Subject: Created python files for graphics. Created addtional subsection verlockende Intuition --- buch/papers/lambertw/Bilder/Strategie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buch/papers/lambertw/Bilder/Strategie.py') diff --git a/buch/papers/lambertw/Bilder/Strategie.py b/buch/papers/lambertw/Bilder/Strategie.py index b9b41bf..28f7bcd 100644 --- a/buch/papers/lambertw/Bilder/Strategie.py +++ b/buch/papers/lambertw/Bilder/Strategie.py @@ -44,7 +44,7 @@ plt.rcParams.update({ "font.serif": ["New Century Schoolbook"], }) -ax.text(1.6, 4.3, r"$\vec{v}$", size=30) +ax.text(1.6, 4.3, r"$\dot{v}$", size=30) ax.text(0.6, 3.9, r"$V$", size=30, c='b') ax.text(5.1, 4.77, r"$Z$", size=30, c='b') -- cgit v1.2.1 From 05b1350074c1c62340c7c32f240cb46078c152e7 Mon Sep 17 00:00:00 2001 From: Kuster Yanik Date: Thu, 4 Aug 2022 17:31:48 +0200 Subject: changed textsize in Strategie.pdf. Did minor changes in Teil0 and Teil1 --- buch/papers/lambertw/Bilder/Strategie.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'buch/papers/lambertw/Bilder/Strategie.py') diff --git a/buch/papers/lambertw/Bilder/Strategie.py b/buch/papers/lambertw/Bilder/Strategie.py index 28f7bcd..d7d06cb 100644 --- a/buch/papers/lambertw/Bilder/Strategie.py +++ b/buch/papers/lambertw/Bilder/Strategie.py @@ -34,7 +34,8 @@ ax.quiver(X, Y, U, W, angles='xy', scale_units='xy', scale=1, headwidth=5, headl ax.plot([V[0], (VZ+V)[0]], [V[1], (VZ+V)[1]], 'k--') ax.plot(np.vstack([V, Z])[:, 0], np.vstack([V, Z])[:,1], 'bo', markersize=10) - +ax.set_xlabel("x") +ax.set_ylabel("y") ax.text(2.5, 4.5, "Visierlinie", size=20, rotation=10) @@ -44,9 +45,9 @@ plt.rcParams.update({ "font.serif": ["New Century Schoolbook"], }) -ax.text(1.6, 4.3, r"$\dot{v}$", size=30) -ax.text(0.6, 3.9, r"$V$", size=30, c='b') -ax.text(5.1, 4.77, r"$Z$", size=30, c='b') +ax.text(1.6, 4.3, r"$\dot{v}$", size=20) +ax.text(0.65, 3.9, r"$V$", size=20, c='b') +ax.text(5.15, 4.85, r"$Z$", size=20, c='b') -- cgit v1.2.1 From ded30e493c1b05f1f412f2e78636d7195ea054e0 Mon Sep 17 00:00:00 2001 From: Kuster Yanik Date: Thu, 4 Aug 2022 21:24:11 +0200 Subject: added new subsection wird das Ziel erreicht? --- buch/papers/lambertw/Bilder/Strategie.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buch/papers/lambertw/Bilder/Strategie.py') diff --git a/buch/papers/lambertw/Bilder/Strategie.py b/buch/papers/lambertw/Bilder/Strategie.py index d7d06cb..975e248 100644 --- a/buch/papers/lambertw/Bilder/Strategie.py +++ b/buch/papers/lambertw/Bilder/Strategie.py @@ -34,8 +34,8 @@ ax.quiver(X, Y, U, W, angles='xy', scale_units='xy', scale=1, headwidth=5, headl ax.plot([V[0], (VZ+V)[0]], [V[1], (VZ+V)[1]], 'k--') ax.plot(np.vstack([V, Z])[:, 0], np.vstack([V, Z])[:,1], 'bo', markersize=10) -ax.set_xlabel("x") -ax.set_ylabel("y") +ax.set_xlabel("x", size=20) +ax.set_ylabel("y", size=20) ax.text(2.5, 4.5, "Visierlinie", size=20, rotation=10) -- cgit v1.2.1