]> git.friedersdorff.com Git - max/plotting_with_matplotlib.git/blobdiff - time_series.py
feat: Stacked bars, pull out time series, saving
[max/plotting_with_matplotlib.git] / time_series.py
diff --git a/time_series.py b/time_series.py
new file mode 100644 (file)
index 0000000..d763e22
--- /dev/null
@@ -0,0 +1,9 @@
+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)
+plt.title('Some time series with left title', loc='left')
+plt.ylabel('Mass of test mass over time')
+plt.show()