Skip to content

Instantly share code, notes, and snippets.

@ShuaiGuo16
Created December 28, 2020 12:14
Show Gist options
  • Save ShuaiGuo16/753ac030891ce9885262f2e7035ac7dc to your computer and use it in GitHub Desktop.
Save ShuaiGuo16/753ac030891ce9885262f2e7035ac7dc to your computer and use it in GitHub Desktop.
Obtain edges of bins for plotting histogram
# Extract range data
Range = traj_X[:,-1]
# Extract bins
n, bins, patches = plt.hist(Range, bins=10, edgecolor='black')
plt.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment