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

Skip to content

Commit 6df7829

Browse files
committed
PEP8 fixes
1 parent a1b822f commit 6df7829

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

lib/matplotlib/axes/_base.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,14 @@ def __call__(self, *args, **kwargs):
181181
ret = self._grab_next_args(*args, **kwargs)
182182
return ret
183183

184-
185184
def set_lineprops(self, line, **kwargs):
186185
assert self.command == 'plot', 'set_lineprops only works with "plot"'
187186
line.set(**kwargs)
188187

189-
190188
def set_patchprops(self, fill_poly, **kwargs):
191189
assert self.command == 'fill', 'set_patchprops only works with "fill"'
192190
fill_poly.set(**kwargs)
193191

194-
195192
def _xy_from_xy(self, x, y):
196193
if self.axes.xaxis is not None and self.axes.yaxis is not None:
197194
bx = self.axes.xaxis.update_units(x)
@@ -228,7 +225,6 @@ def _xy_from_xy(self, x, y):
228225
y = y[:, np.newaxis]
229226
return x, y
230227

231-
232228
def _getdefaults(self, *kwargs):
233229
"""
234230
Only advance the cycler if the cycler has information that
@@ -244,7 +240,6 @@ def _getdefaults(self, *kwargs):
244240
default_dict = None
245241
return default_dict
246242

247-
248243
def _setdefaults(self, default_dict, *kwargs):
249244
"""
250245
Given a defaults dictionary (or None), and a other dictionaries,
@@ -259,7 +254,6 @@ def _setdefaults(self, default_dict, *kwargs):
259254
for kw in kwargs:
260255
kw[k] = default_dict[k]
261256

262-
263257
def _makeline(self, x, y, kw, kwargs):
264258
kw = kw.copy() # Don't modify the original kw.
265259
kwargs = kwargs.copy()
@@ -269,7 +263,6 @@ def _makeline(self, x, y, kw, kwargs):
269263
self.set_lineprops(seg, **kwargs)
270264
return seg
271265

272-
273266
def _makefill(self, x, y, kw, kwargs):
274267
kw = kw.copy() # Don't modify the original kw.
275268
kwargs = kwargs.copy()
@@ -309,7 +302,6 @@ def _makefill(self, x, y, kw, kwargs):
309302
self.set_patchprops(seg, **kwargs)
310303
return seg
311304

312-
313305
def _plot_args(self, tup, kwargs):
314306
ret = []
315307
if len(tup) > 1 and is_string_like(tup[-1]):

lib/matplotlib/tests/test_cycles.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from cycler import cycler
66

7+
78
@image_comparison(baseline_images=['color_cycle_basic'], remove_text=True,
89
extensions=['png'])
910
def test_colorcycle_basic():
@@ -39,6 +40,7 @@ def test_linestylecycle_basic():
3940
ax.plot(xs, ys, label='solid2', lw=4)
4041
ax.legend(loc='upper left')
4142

43+
4244
@image_comparison(baseline_images=['fill_cycle_basic'], remove_text=True,
4345
extensions=['png'])
4446
def test_fillcycle_basic():
@@ -62,4 +64,3 @@ def test_fillcycle_basic():
6264
if __name__ == '__main__':
6365
import nose
6466
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)
65-

0 commit comments

Comments
 (0)