Skip to content

Commit e5b5da0

Browse files
committed
MNT/DOC: whitespace + updated example heading
1 parent b7ad0f2 commit e5b5da0

File tree

3 files changed

+26
-20
lines changed

3 files changed

+26
-20
lines changed

LICENSE/Solarized.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1717
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1818
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1919
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20-
THE SOFTWARE.
20+
THE SOFTWARE.

examples/style_sheets/plot_solarizedlight2.py

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
"""
2-
Version 0.1
3-
This shows an example of "Solarized_Light2" styling, which
2+
==========================
3+
Solarized Light stylesheet
4+
==========================
5+
6+
This shows an example of "Solarized_Light" styling, which
47
tries to replicate the styles of:
5-
- http://ethanschoonover.com/solarized
6-
- https://github.com/jrnold/ggthemes
7-
- http://pygal.org/builtin_styles/#idlight-solarized
88
9-
and work of:
10-
- https://github.com/tonysyu/mpltools
9+
- `<http://ethanschoonover.com/solarized>`__
10+
- `<https://github.com/jrnold/ggthemes>`__
11+
- `<http://pygal.org/builtin_styles/#idlight-solarized>`__
12+
13+
and work of:
14+
15+
- `<https://github.com/tonysyu/mpltools>`__
1116
1217
using all 8 accents of the color palette - starting with blue
1318
@@ -27,8 +32,9 @@
2732
plt.plot(x, np.sin(x) + 6 * x + np.random.randn(50))
2833
plt.plot(x, np.sin(x) + 7 * x + np.random.randn(50))
2934
plt.plot(x, np.sin(x) + 8 * x + np.random.randn(50))
30-
#Number of accent colors in the color scheme
35+
# Number of accent colors in the color scheme
3136
plt.title('8 Random Lines - Line')
3237
plt.xlabel('x label', fontsize=14)
3338
plt.ylabel('y label', fontsize=14)
34-
plt.show( )
39+
40+
plt.show()

lib/matplotlib/mpl-data/stylelib/Solarize_Light2.mplstyle

+10-10
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ axes.labelcolor : 657b83
3232
axes.facecolor : eee8d5
3333
axes.edgecolor : eee8d5
3434
axes.axisbelow : True
35-
axes.color_cycle : 268BD2, 2AA198, 859900, B58900, CB4B16, DC322F, D33682, 6C71C4
36-
# Blue
37-
# Cyan
38-
# Green
39-
# Yellow
40-
# Orange
41-
# Red
42-
# Magenta
43-
# Violet
35+
axes.prop_cycle : cycler('color', ['268BD2', '2AA198', '859900', 'B58900', 'CB4B16', 'DC322F', 'D33682', '6C71C4'])
36+
# Blue
37+
# Cyan
38+
# Green
39+
# Yellow
40+
# Orange
41+
# Red
42+
# Magenta
43+
# Violet
4444
axes.grid : True
4545
grid.color : fdf6e3 # grid color
4646
grid.linestyle : - # line
@@ -51,4 +51,4 @@ xtick.color : 657b83
5151
xtick.direction : out
5252

5353
ytick.color : 657b83
54-
ytick.direction : out
54+
ytick.direction : out

0 commit comments

Comments
 (0)