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 fead68b

Browse filesBrowse files
committed
pep8 fixes
1 parent 04c734c commit fead68b
Copy full SHA for fead68b

File tree

Expand file treeCollapse file tree

2 files changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-2
lines changed

‎lib/matplotlib/tests/test_ticker.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_ticker.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_MaxNLocator():
2525

2626
def test_LinearLocator():
2727
loc = mticker.LinearLocator(numticks=3)
28-
test_value = np.array([-0.8, -0.3, 0.2])
28+
test_value = np.array([-0.8, -0.3, 0.2])
2929
assert_almost_equal(loc.tick_values(-0.8, 0.2), test_value)
3030

3131

@@ -50,12 +50,14 @@ def test_LogLocator():
5050
test_value = np.array([0.5, 1., 2., 4., 8., 16., 32., 64., 128., 256.])
5151
assert_almost_equal(loc.tick_values(1, 100), test_value)
5252

53+
5354
def test_use_offset():
5455
for use_offset in [True, False]:
5556
with matplotlib.rc_context({'axes.formatter.useoffset': use_offset}):
5657
tmp_form = mticker.ScalarFormatter()
5758
nose.tools.assert_equal(use_offset, tmp_form.get_useOffset())
5859

60+
5961
def test_formatstrformatter():
6062
# test % style formatter
6163
tmp_form = mticker.FormatStrFormatter('%05d')

‎lib/matplotlib/ticker.py

Copy file name to clipboardExpand all lines: lib/matplotlib/ticker.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ def __call__(self, x, pos=None):
304304

305305
class StrMethodFormatter(Formatter):
306306
"""
307-
Use a new-style format string (as used by `str.format()`) to format the tick
307+
Use a new-style format string (as used by `str.format()`)
308+
to format the tick
308309
"""
309310
def __init__(self, fmt):
310311
self.fmt = fmt

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.