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

Skip to content

Commit 3c95554

Browse files
committed
Merge pull request #4350 from tamasgal/master
MNT : Sets rcparams for axes and grid in plt.xkcd
2 parents 51cf15b + fc05b70 commit 3c95554

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,10 @@ def xkcd(scale=1, length=100, randomness=2):
309309
rcParams['lines.linewidth'] = 2.0
310310
rcParams['figure.facecolor'] = 'white'
311311
rcParams['grid.linewidth'] = 0.0
312+
rcParams['axes.grid'] = False
312313
rcParams['axes.unicode_minus'] = False
313314
rcParams['axes.color_cycle'] = ['b', 'r', 'c', 'm']
315+
rcParams['axes.edgecolor'] = 'black'
314316
rcParams['xtick.major.size'] = 8
315317
rcParams['xtick.major.width'] = 3
316318
rcParams['ytick.major.size'] = 8

0 commit comments

Comments
 (0)