Skip to content

Instantly share code, notes, and snippets.

@yuliji
Last active November 6, 2017 10:16
Show Gist options
  • Save yuliji/0c2d7313405f9478304377664563e9b5 to your computer and use it in GitHub Desktop.
Save yuliji/0c2d7313405f9478304377664563e9b5 to your computer and use it in GitHub Desktop.
python plot
import matplotlib.pyplot as plt
fig, ax = plt.subplots(ncols=1, nrows=3, figsize=(10, 15))
ax[0].hist(scores1, bins=100, range=(0, 100)) # bins is number of columns, range is upper and lower bound
ax[1].hist(scores2, bins=100, range=(0, 100)) # bins is number of columns, range is upper and lower bound
ax[2].hist(diff, bins=100, range=(-300, 300)) # bins is number of columns, range is upper and lower bound
fig.tight_layout()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment