diff --git a/LICENSE/Solarized.txt b/LICENSE/Solarized.txt new file mode 100644 index 000000000000..6e5a0475dd24 --- /dev/null +++ b/LICENSE/Solarized.txt @@ -0,0 +1,20 @@ +https://github.com/altercation/solarized/blob/master/LICENSE +Copyright (c) 2011 Ethan Schoonover + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/examples/style_sheets/plot_solarizedlight2.py b/examples/style_sheets/plot_solarizedlight2.py new file mode 100644 index 000000000000..79db70195458 --- /dev/null +++ b/examples/style_sheets/plot_solarizedlight2.py @@ -0,0 +1,40 @@ +""" +========================== +Solarized Light stylesheet +========================== + +This shows an example of "Solarized_Light" styling, which +tries to replicate the styles of: + + - ``__ + - ``__ + - ``__ + +and work of: + + - ``__ + +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)) + plt.plot(x, np.sin(x) + 3 * x + np.random.randn(50)) + plt.plot(x, np.sin(x) + 4 + np.random.randn(50)) + 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)) + # Number of accent colors in the color scheme + plt.title('8 Random Lines - Line') + plt.xlabel('x label', fontsize=14) + plt.ylabel('y label', fontsize=14) + +plt.show() diff --git a/lib/matplotlib/mpl-data/stylelib/Solarize_Light2.mplstyle b/lib/matplotlib/mpl-data/stylelib/Solarize_Light2.mplstyle new file mode 100644 index 000000000000..6c7aa7ee1219 --- /dev/null +++ b/lib/matplotlib/mpl-data/stylelib/Solarize_Light2.mplstyle @@ -0,0 +1,53 @@ +# Solarized color palette taken from http://ethanschoonover.com/solarized +# Inspired by, and copied from ggthemes https://github.com/jrnold/ggthemes + +#TODO: +# 1. Padding to title from face +# 2. Remove top & right ticks +# 3. Give Title a Magenta Color(?) + +#base00 ='#657b83' +#base01 ='#93a1a1' +#base2 ='#eee8d5' +#base3 ='#fdf6e3' +#base01 ='#586e75' +#Magenta ='#d33682' +#Blue ='#268bd2' +#cyan ='#2aa198' +#violet ='#6c71c4' +#green ='#859900' +#orange ='#cb4b16' + +figure.facecolor : FDF6E3 + +patch.antialiased : True + +lines.linewidth : 2.0 +lines.solid_capstyle: butt + +axes.titlesize : 16 +axes.labelsize : 12 +axes.labelcolor : 657b83 +axes.facecolor : eee8d5 +axes.edgecolor : eee8d5 +axes.axisbelow : True +axes.prop_cycle : cycler('color', ['268BD2', '2AA198', '859900', 'B58900', 'CB4B16', 'DC322F', 'D33682', '6C71C4']) +# Blue +# Cyan +# Green +# Yellow +# Orange +# Red +# Magenta +# Violet +axes.grid : True +grid.color : fdf6e3 # grid color +grid.linestyle : - # line +grid.linewidth : 1 # in points + +### TICKS +xtick.color : 657b83 +xtick.direction : out + +ytick.color : 657b83 +ytick.direction : out