summaryrefslogtreecommitdiff
path: root/plotting.py
diff options
context:
space:
mode:
Diffstat (limited to 'plotting.py')
-rw-r--r--plotting.py9
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()