summaryrefslogtreecommitdiff
path: root/python/personal/plt.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/personal/plt.py')
-rw-r--r--python/personal/plt.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/python/personal/plt.py b/python/personal/plt.py
new file mode 100644
index 0000000..c81fd3d
--- /dev/null
+++ b/python/personal/plt.py
@@ -0,0 +1,13 @@
+import numpy as np
+import matplotlib.pyplot as plt
+
+# Let's have our x values just be a count from 0 to 49.
+var1 = np.arange(50)
+print(var1)
+
+# And let's randomly generate some y values!
+var2 = var1 + 10*np.random.randn(50)
+
+plt.scatter(var1,var2)
+
+plt.show()