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

Skip to content

Commit fc05b70

Browse files
committed
Sets additional default values for axes and grid.
Changes default axes edge colour to black and disables the axes grid. These settings are often set via matplotlibrc and should be overwritten by the xkcd style.
1 parent 6586369 commit fc05b70

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)