Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d2cb8a2

Browse files
adding a new color and editing an existing color in fivethirtyeight.mplstyle
1 parent 5de9c44 commit d2cb8a2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

examples/style_sheets/plot_fivethirtyeight.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
plt.plot(x, np.sin(x) + x + np.random.randn(50))
1414
plt.plot(x, np.sin(x) + 0.5 * x + np.random.randn(50))
1515
plt.plot(x, np.sin(x) + 2 * x + np.random.randn(50))
16+
plt.plot(x, np.sin(x) - 0.5 * x + np.random.randn(50))
17+
plt.plot(x, np.sin(x) - 2 * x + np.random.randn(50))
18+
plt.plot(x, np.sin(x) + np.random.randn(50))
1619

1720

1821
plt.show()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ lines.solid_capstyle: butt
66

77
legend.fancybox: true
88

9-
axes.prop_cycle: cycler('color', ['30a2da', 'fc4f30', 'e5ae38', '6d904f', '8b8b8b'])
9+
axes.prop_cycle: cycler('color', ['008fd5', 'fc4f30', 'e5ae38', '6d904f', '8b8b8b', '810f7c'])
1010
axes.facecolor: f0f0f0
1111
axes.labelsize: large
1212
axes.axisbelow: true

0 commit comments

Comments
 (0)