]> git.friedersdorff.com Git - max/plotting_with_matplotlib.git/commitdiff
fix: y=f(t) therefor use y as variable name
authorMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 30 Jan 2019 22:18:37 +0000 (22:18 +0000)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 30 Jan 2019 22:18:37 +0000 (22:18 +0000)
time_series.py

index d763e22349298bb30213c55a2546b0e390805ee8..bbaf50cf889ca04c931a895a289c1a24600535dd 100644 (file)
@@ -2,8 +2,8 @@ import matplotlib.pyplot as plt
 from numpy import random as ran
 
 t = range(50)
-x = (ran.rand(50)*50) + 2000 # I don't have real data
-plt.plot(t, x)
+y = (ran.rand(50)*50) + 2000 # I don't have real data
+plt.plot(t, y)
 plt.title('Some time series with left title', loc='left')
 plt.ylabel('Mass of test mass over time')
 plt.show()