Created
December 28, 2020 12:14
-
-
Save ShuaiGuo16/753ac030891ce9885262f2e7035ac7dc to your computer and use it in GitHub Desktop.
Obtain edges of bins for plotting histogram
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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