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

Skip to content

Commit 73d041d

Browse files
committed
Fix PEP8 issues in core library.
1 parent 85e52f6 commit 73d041d

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,8 @@ def legend(self, *args, **kwargs):
500500
Notes
501501
-----
502502
503-
Not all kinds of artist are supported by the legend command.
504-
See :ref:`sphx_glr_tutorials_02_intermediate_legend_guide.py` for details.
503+
Not all kinds of artist are supported by the legend command. See
504+
:ref:`sphx_glr_tutorials_02_intermediate_legend_guide.py` for details.
505505
506506
Examples
507507
--------

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,8 @@ def add_patch(self, p):
18571857
p.set_clip_path(self.patch)
18581858
self._update_patch_limits(p)
18591859
if self.name != 'rectilinear':
1860-
p.get_path()._interpolation_steps = max(p.get_path()._interpolation_steps, 100)
1860+
path = p.get_path()
1861+
path._interpolation_steps = max(path._interpolation_steps, 100)
18611862
self.patches.append(p)
18621863
p._remove_method = lambda h: self.patches.remove(h)
18631864
return p

lib/matplotlib/figure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,8 +1411,8 @@ def legend(self, *args, **kwargs):
14111411
14121412
Notes
14131413
-----
1414-
Not all kinds of artist are supported by the legend command.
1415-
See :ref:`sphx_glr_tutorials_02_intermediate_legend_guide.py` for details.
1414+
Not all kinds of artist are supported by the legend command. See
1415+
:ref:`sphx_glr_tutorials_02_intermediate_legend_guide.py` for details.
14161416
"""
14171417

14181418
# If no arguments given, collect up all the artists on the figure

lib/matplotlib/legend.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
It is unlikely that you would ever create a Legend instance manually.
88
Most users would normally create a legend via the
99
:meth:`~matplotlib.axes.Axes.legend` function. For more details on legends
10-
there is also a :ref:`legend guide <sphx_glr_tutorials_02_intermediate_legend_guide.py>`.
10+
there is also a :ref:`legend guide
11+
<sphx_glr_tutorials_02_intermediate_legend_guide.py>`.
1112
1213
The Legend class can be considered as a container of legend handles
1314
and legend texts. Creation of corresponding legend handles from the
@@ -16,9 +17,9 @@
1617
plot elements and the legend handlers to be used (the default legend
1718
handlers are defined in the :mod:`~matplotlib.legend_handler` module).
1819
Note that not all kinds of artist are supported by the legend yet by default
19-
but it is possible to extend the legend handler's capabilities to
20-
support arbitrary objects. See the :ref:`legend guide <sphx_glr_tutorials_02_intermediate_legend_guide.py>`
21-
for more information.
20+
but it is possible to extend the legend handler's capabilities to support
21+
arbitrary objects. See the :ref:`legend guide
22+
<sphx_glr_tutorials_02_intermediate_legend_guide.py>` for more information.
2223
2324
"""
2425
from __future__ import (absolute_import, division, print_function,

lib/matplotlib/ticker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@
163163
ax.yaxis.set_major_formatter( ymajorFormatter )
164164
ax.yaxis.set_minor_formatter( yminorFormatter )
165165
166-
See :ref:`sphx_glr_gallery_pylab_examples_major_minor_demo1.py` for an example of setting
167-
major and minor ticks. See the :mod:`matplotlib.dates` module for
166+
See :ref:`sphx_glr_gallery_pylab_examples_major_minor_demo1.py` for an example
167+
of setting major and minor ticks. See the :mod:`matplotlib.dates` module for
168168
more information and examples of using date locators and formatters.
169169
"""
170170

0 commit comments

Comments
 (0)