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

Skip to content

Commit 662890a

Browse files
committed
FIX: add omitted function, import, remove whitespace
1 parent b179b29 commit 662890a

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,14 @@
7979

8080
# Base hexagon for creating prisms (HexBar3DCollection).
8181
# sides are ordered anti-clockwise from left: ['W', 'SW', 'SE', 'E', 'NE', 'NW']
82-
# autopep8: off
8382
HEXAGON = np.array([
84-
[-2, 1 ],
85-
[-2, -1 ],
86-
[ 0, -2 ],
87-
[ 2, -1 ],
88-
[ 2, 1 ],
89-
[ 0, 2 ]
83+
[-2, 1],
84+
[-2, -1],
85+
[0, -2],
86+
[2, -1],
87+
[2, 1],
88+
[0, 2]
9089
]) / 4
91-
# autopep8: on
9290

9391
# ---------------------------------------------------------------------------- #
9492

@@ -97,6 +95,11 @@ def is_none(*args):
9795
yield a is None
9896

9997

98+
def is_none(*args):
99+
for a in args:
100+
yield a is None
101+
102+
100103
def _norm_angle(a):
101104
"""Return the given angle normalized to -180 < *a* <= 180 degrees."""
102105
a = (a + 360) % 360
@@ -1195,8 +1198,8 @@ def get_edgecolor(self):
11951198
class Bar3DCollection(Poly3DCollection):
11961199
"""
11971200
Bars (rectangular prisms) with constant square cross section, bases located
1198-
on z-plane at *z0*, aranged in a regular grid at *x*, *y* locations and with
1199-
height *z - z0*.
1201+
on z-plane at *z0*, arranged in a regular grid at *x*, *y* locations and
1202+
with height *z - z0*.
12001203
"""
12011204

12021205
_n_faces = 6

0 commit comments

Comments
 (0)