Last active
August 31, 2015 01:34
-
-
Save walterreade/eff3780074ce66e9c686 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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