Skip to content

Instantly share code, notes, and snippets.

@agalea91
Last active May 17, 2016 05:59
Show Gist options
  • Save agalea91/c65f67cd554ab553b6de5de6ac96b355 to your computer and use it in GitHub Desktop.
Save agalea91/c65f67cd554ab553b6de5de6ac96b355 to your computer and use it in GitHub Desktop.
python-how-to
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