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

Skip to content

Commit 02ef3b2

Browse files
committed
flake8 compliance
1 parent 9c69a53 commit 02ef3b2

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

lib/matplotlib/bezier.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ def __call__(self, t):
244244
@property
245245
def interior_extrema(self):
246246
"""
247-
Return the location along the curve's interior where its partial derivative is
248-
zero, along with the dimension along which it is zero for each
249-
instance.
247+
Return the location along the curve's interior where its partial
248+
derivative is zero, along with the dimension along which it is zero for
249+
each instance.
250250
251251
Returns
252252
-------

lib/matplotlib/path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
def _update_extents(extents, point):
2424
dim = len(point)
25-
for i,xi in enumerate(point):
25+
for i, xi in enumerate(point):
2626
if xi < extents[i]:
2727
extents[i] = xi
2828
# elif here would fail to correctly update from "null" extents of

lib/matplotlib/tests/test_path.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,9 @@ def test_contains_points_negative_radius():
5050

5151

5252
def test_exact_extents_cubic():
53-
hard_curve = Path([[0, 0],
54-
[1, 0], [1, 1], [0, 1]],
55-
[Path.MOVETO,
56-
Path.CURVE4, Path.CURVE4, Path.CURVE4])
57-
np.testing.assert_equal(hard_curve.get_exact_extents(),
58-
[0., 0., 0.75, 1.])
53+
hard_curve = Path([[0, 0], [1, 0], [1, 1], [0, 1]],
54+
[Path.MOVETO, Path.CURVE4, Path.CURVE4, Path.CURVE4])
55+
np.testing.assert_equal(hard_curve.get_exact_extents(), [0., 0., 0.75, 1.])
5956

6057

6158
def test_point_in_path_nan():

0 commit comments

Comments
 (0)