Skip to content

Instantly share code, notes, and snippets.

@walterreade
Last active August 31, 2015 01:34
Show Gist options
  • Save walterreade/eff3780074ce66e9c686 to your computer and use it in GitHub Desktop.
Save walterreade/eff3780074ce66e9c686 to your computer and use it in GitHub Desktop.
plt.style.use('bmh')
colors = ['#348ABD', '#A60628', '#7A68A6', '#467821', '#D55E00',
'#CC79A7', '#56B4E9', '#009E73', '#F0E442', '#0072B2']
https://github.com/rasbt/matplotlib-gallery
# http://www.datasciencecentral.com/group/tutorials/forum/topics/cheat-sheet-data-visualisation-in-python?xg_source=activity
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
ax.hist(values, bins=10)
plt.title('Title')
plt.xlabel('x')
plt.ylabel('y')
plt.show()
ax.boxplot(values)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment