Last active
May 17, 2016 05:59
-
-
Save agalea91/c65f67cd554ab553b6de5de6ac96b355 to your computer and use it in GitHub Desktop.
python-how-to
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
import seaborn as sns | |
sns.set_style('darkgrid') | |
from matplotlib.colors import ListedColormap | |
# Enter hex values of desired colors | |
color_map = ListedColormap(['#00bfff', '#ff8000']) | |
x = np.linspace(0, 2*np.pi, 100) | |
for i in range(2): | |
plt.plot(x, np.sin(x+np.pi/2*i), c=color_map.colors[i], lw=5, alpha=0.7) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment