diff options
author | Ruben Erlenstedt <rxy626@gmail.com> | 2019-11-30 13:13:48 +0100 |
---|---|---|
committer | Ruben Erlenstedt <rxy626@gmail.com> | 2019-11-30 13:13:48 +0100 |
commit | 56438ced53990b8295f7b282758561ac39947ca0 (patch) | |
tree | 6d8e9a0a9b0bbb056e1410c2006e93187a158e66 /plotting.py | |
parent | cae4a514f6b8414ac4f78c706202f65a819bc5cf (diff) |
work on 2d plot of phi
Diffstat (limited to 'plotting.py')
-rw-r--r-- | plotting.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plotting.py b/plotting.py index 9def377..57116c1 100644 --- a/plotting.py +++ b/plotting.py @@ -43,12 +43,15 @@ def kugel(historie): plt.show() def phi(phi): - fig, ax = plt.subplots() + ax = plt.axes() + plt.grid() x = mth.cos(phi[0]) y = mth.sin(phi[0]) - ax.arrow(0, 0, 1, 1) - ax.set_title('Zeitentwicklung von phi') + ax.arrow(0, 0, 0.5, 0.5, head_width=0.05, head_length=0.07) + plt.title('Zeitentwicklung von phi') + plt.xlim(-1.1,1.1) + plt.ylim(-1.1,1.1) plt.show() |