From: Maximilian Friedersdorff Date: Wed, 30 Jan 2019 22:18:37 +0000 (+0000) Subject: fix: y=f(t) therefor use y as variable name X-Git-Url: https://git.friedersdorff.com/?p=max%2Fplotting_with_matplotlib.git;a=commitdiff_plain;h=7b72293f57a8c19faf64ac804a919f91a3ca3201 fix: y=f(t) therefor use y as variable name --- diff --git a/time_series.py b/time_series.py index d763e22..bbaf50c 100644 --- a/time_series.py +++ b/time_series.py @@ -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()