Skip to content

Instantly share code, notes, and snippets.

@wupher
Created October 17, 2019 03:25
Show Gist options
  • Save wupher/ce7890290ef0772fea474533ba8d4c77 to your computer and use it in GitHub Desktop.
Save wupher/ce7890290ef0772fea474533ba8d4c77 to your computer and use it in GitHub Desktop.
import matplotlib as mpl
import matplotlib.pyplot as plt
mpl.rcParams['font.family'] = 'Heiti TC'
%matplotlib inline
bins = range(min(data), max(data)+100, 100)
plt.hist(data, bins=bins)
plt.title("数据分布图")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment