8000 fix indentation and linting · matplotlib/matplotlib@ca5a443 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ca5a443

Browse files
committed
fix indentation and linting
1 parent 456034c commit ca5a443

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

doc/users/next_whats_new/new_rcparams_grid_options.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ Using :rc:`grid.major.*` or :rc:`grid.minor.*` will overwrite the value in
99
:alt: Modifying the gridlines for three figures using the new options `rcParams`
1010

1111
import matplotlib as mpl
12-
import matplotlib.pyplot as plt
12+
import matplotlib.pyplot as plt
1313

1414

15-
# Set visibility for major and minor gridlines
16-
mpl.rcParams["axes.grid"] = True
17-
mpl.rcParams["ytick.minor.visible"] = True
18-
mpl.rcParams["xtick.minor.visible"] = True
19-
mpl.rcParams["axes.grid.which"] = "both"
15+
# Set visibility for major and minor gridlines
16+
mpl.rcParams["axes.grid"] = True
17+
mpl.rcParams["ytick.minor.visible"] = True
18+
mpl.rcParams["xtick.minor.visible"] = True
19+
mpl.rcParams["axes.grid.which"] = "both"
2020

21-
# Using old old values to set both major and minor properties
22-
mpl.rcParams["grid.color"] = "red"
23-
mpl.rcParams["grid.linewidth"] = 1
21+
# Using old old values to set both major and minor properties
22+
mpl.rcParams["grid.color"] = "red"
23+
mpl.rcParams["grid.linewidth"] = 1
2424

25-
# Overwrite some values for major and minor seperately
26-
mpl.rcParams["grid.major.color"] = "black"
27-
mpl.rcParams["grid.major.linewidth"] = 2
28-
mpl.rcParams["grid.minor.linestyle"] = ":"
29-
mpl.rcParams["grid.minor.alpha"] = 0.6
25+
# Overwrite some values for major and minor seperately
26+
mpl.rcParams["grid.major.color"] = "black"
27+
mpl.rcParams["grid.major.linewidth"] = 2
28+
mpl.rcParams["grid.minor.linestyle"] = ":"
29+
mpl.rcParams["grid.minor.alpha"] = 0.6
3030

31-
plt.plot([0, 1], [0, 1])
31+
plt.plot([0, 1], [0, 1])
3232

33-
plt.show()
33+
plt.show()

lib/matplotlib/tests/test_axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_grid_rcparams():
8080
def_alpha = plt.rcParams["grid.alpha"]
8181

8282
plt.rcParams.update({
83-
"grid.color": "gray","grid.minor.color": "red",
83+
"grid.color": "gray", "grid.minor.color": "red",
8484
"grid.major.linestyle": ":", "grid.major.linewidth": 2,
8585
"grid.minor.alpha": 0.6,
8686
})

0 commit comments

Comments
 (0)
0