Skip to content

Solarize_Light2 #3851

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
Get Rid of white spaces 2
  • Loading branch information
ilivni committed Nov 29, 2014
commit f8faf183af0f504f4e6183f3e5bb36ba2ae3599c
17 changes: 5 additions & 12 deletions examples/style_sheets/plot_solarizedlight2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,17 @@
tries to replicate the styles of:
- http://ethanschoonover.com/solarized
- https://github.com/jrnold/ggthemes
- http://pygal.org/builtin_styles/#idlight-solarized
and work of:
- https://github.com/tonysyu/mpltools
- http://pygal.org/builtin_styles/#idlight-solarized
and work of:
- https://github.com/tonysyu/mpltools
using all 8 accents of the color palette - starting with blue
ToDo:
- Create alpha values for bar and stacked charts. .33 or .5
- Apply Layout Rules
"""


from matplotlib import pyplot as plt
import numpy as np

x = np.linspace(0, 10)

with plt.style.context('Solarize_Light2'):
plt.plot(x, np.sin(x) + x + np.random.randn(50))
plt.plot(x, np.sin(x) + 2 * x + np.random.randn(50))
Expand All @@ -27,12 +23,9 @@
plt.plot(x, np.sin(x) + 5 * x + np.random.randn(50))
plt.plot(x, np.sin(x) + 6 * x + np.random.randn(50))
plt.plot(x, np.sin(x) + 7 * x + np.random.randn(50))
plt.plot(x, np.sin(x) + 8 * x + np.random.randn(50))

plt.plot(x, np.sin(x) + 8 * x + np.random.randn(50))
#Number of accent colors in the color scheme
plt.title('8 Random Lines')

plt.title('8 Random Lines')
plt.xlabel('x label', fontsize=14)
plt.ylabel('y label', fontsize=14)

plt.show()