Quick histogram python

From Federal Burro of Information
Revision as of 18:01, 19 December 2024 by David (talk | contribs) (Created page with "category:script <pre> #!/usr/bin/env python3 #-*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt myarr = np.loadtxt("numbers.txt") plt.hist(myarr) plt.show() </pre>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


#!/usr/bin/env python3
#-*- coding: utf-8 -*-

import numpy as np
import matplotlib.pyplot as plt

myarr = np.loadtxt("numbers.txt") 

plt.hist(myarr)
plt.show()