Skip to content

Commit 3aa5386

Browse files
authored
Merge pull request matplotlib#25304 from dstansby/pcr-plot-types
Add import sorting to `/plot_types`
2 parents 17db60b + 28c8c60 commit 3aa5386

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ repos:
4747
hooks:
4848
- id: isort
4949
name: isort (python)
50-
files: ^tutorials/|^examples/
50+
files: ^tutorials/|^examples/|^plot_types/

plot_types/3D/surface3d_simple.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
See `~mpl_toolkits.mplot3d.axes3d.Axes3D.plot_surface`.
77
"""
88
import matplotlib.pyplot as plt
9-
from matplotlib import cm
109
import numpy as np
1110

11+
from matplotlib import cm
12+
1213
plt.style.use('_mpl-gallery')
1314

1415
# Make data

plot_types/3D/trisurf3d_simple.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
See `~mpl_toolkits.mplot3d.axes3d.Axes3D.plot_trisurf`.
77
"""
88
import matplotlib.pyplot as plt
9-
from matplotlib import cm
109
import numpy as np
1110

11+
from matplotlib import cm
12+
1213
plt.style.use('_mpl-gallery')
1314

1415
n_radii = 8

plot_types/3D/wire3d_simple.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
66
See `~mpl_toolkits.mplot3d.axes3d.Axes3D.plot_wireframe`.
77
"""
8-
from mpl_toolkits.mplot3d import axes3d
98
import matplotlib.pyplot as plt
109

10+
from mpl_toolkits.mplot3d import axes3d
11+
1112
plt.style.use('_mpl-gallery')
1213

1314
# Make data

plot_types/basic/bar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"""
88
import matplotlib.pyplot as plt
99
import numpy as np
10+
1011
plt.style.use('_mpl-gallery')
1112

1213
# make data:

0 commit comments

Comments
 (0)