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

Skip to content

Commit 155ef67

Browse files
authored
Merge pull request #17597 from tacaswell/mnt_flake8_cleanup
MNT: cleanup minor style issues
2 parents f33226f + 44fd12b commit 155ef67

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

examples/statistics/confidence_ellipse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def get_correlated_dataset(n, dependency, mu, scale):
209209

210210
ax_kwargs.scatter(x, y, s=0.5)
211211
ax_kwargs.scatter(mu[0], mu[1], c='red', s=3)
212-
ax_kwargs.set_title(f'Using kwargs')
212+
ax_kwargs.set_title('Using kwargs')
213213

214214
fig.subplots_adjust(hspace=0.25)
215215
plt.show()

examples/ticks_and_spines/tick-formatters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def setup(ax, title):
7373
setup(axs1[1], title="StrMethodFormatter('{x:.3f}')")
7474
axs1[1].xaxis.set_major_formatter(ticker.StrMethodFormatter("{x:.3f}"))
7575

76+
7677
# FuncFormatter can be used as a decorator
7778
@ticker.FuncFormatter
7879
def major_formatter(x, pos):

lib/matplotlib/tests/test_backend_pgf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def create_figure():
100100
def test_common_texification(plain_text, escaped_text):
101101
assert common_texification(plain_text) == escaped_text
102102

103+
103104
# test compiling a figure to pdf with xelatex
104105
@needs_xelatex
105106
@pytest.mark.backend('pgf')

lib/matplotlib/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1908,7 +1908,7 @@ def __init__(self, ax, onselect, drawtype='box',
19081908
lineprops=None, rectprops=None, spancoords='data',
19091909
button=None, maxdist=10, marker_props=None,
19101910
interactive=False, state_modifier_keys=None):
1911-
"""
1911+
r"""
19121912
Parameters
19131913
----------
19141914
ax : `~matplotlib.axes.Axes`

0 commit comments

Comments
 (0)