diff options
| author | pants <niklasjo2004@gmail.com> | 2026-09-21 14:17:15 -0700 |
|---|---|---|
| committer | pants <niklasjo2004@gmail.com> | 2026-09-21 14:17:15 -0700 |
| commit | 3813621611945a0be23384c0c4d395b4c4a614ad (patch) | |
| tree | 1812fd440839272e7dd16f5635e180769a66f5f1 /python/personal/plt.py | |
Diffstat (limited to 'python/personal/plt.py')
| -rw-r--r-- | python/personal/plt.py | 13 |
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() |
