Skip to content

Commit

Permalink
Merge 4434dc0 into eb5303c
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Feb 12, 2019
2 parents eb5303c + 4434dc0 commit 112c19f
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 70 deletions.
108 changes: 54 additions & 54 deletions .flake8
Expand Up @@ -28,61 +28,61 @@ per-file-ignores =
tools/compare_backend_driver_results.py: E501
tools/subset.py: E221, E231, E251, E261, E302, E501, E701

matplotlib/_cm.py: E202, E203, E302
matplotlib/_mathtext_data.py: E203, E261
matplotlib/backend_bases.py: E225
matplotlib/backends/_backend_tk.py: E203, E222, E225, E231, E271, E301, E303, E401, E501, E701
matplotlib/backends/backend_agg.py: E261, E302, E701
matplotlib/backends/backend_cairo.py: E203, E221, E261, E303, E402
matplotlib/backends/backend_gtk3.py: E203, E221, E222, E225, E251, E261, E501
matplotlib/backends/backend_macosx.py: E231, E261
matplotlib/backends/backend_pgf.py: E303, E731
matplotlib/backends/backend_ps.py: E203, E225, E228, E231, E261, E262, E302, E303, E501, E701
matplotlib/backends/backend_svg.py: E203, E225, E228, E231, E261, E302, E501
matplotlib/backends/qt_editor/formlayout.py: E301, E501
matplotlib/backends/tkagg.py: E231, E302, E701
matplotlib/backends/windowing.py: E301, E302
matplotlib/font_manager.py: E203, E221, E251, E261, E262, E302, E501
matplotlib/fontconfig_pattern.py: E201, E203, E221, E222, E225, E302
matplotlib/legend_handler.py: E201, E501
matplotlib/mathtext.py: E201, E202, E203, E211, E221, E222, E225, E231, E251, E261, E301, E302, E303, E402, E501
matplotlib/patheffects.py: E231
matplotlib/projections/geo.py: E203, E221, E231, E261, E502
matplotlib/pylab.py: E501
matplotlib/pyplot.py: E201, E202, E221, E222, E225, E231, E251, E261, E501
matplotlib/rcsetup.py: E203, E225, E261, E302, E501
matplotlib/sphinxext/mathmpl.py: E302
matplotlib/sphinxext/only_directives.py: E302
matplotlib/sphinxext/plot_directive.py: E261, E302, E402
matplotlib/tests/test_image.py: E231
matplotlib/tests/test_mathtext.py: E501
matplotlib/transforms.py: E201, E202, E203, E501
matplotlib/tri/triinterpolate.py: E201, E221
matplotlib/type1font.py: E731
lib/matplotlib/_cm.py: E202, E203, E302
lib/matplotlib/_mathtext_data.py: E203, E261
lib/matplotlib/backend_bases.py: E225
lib/matplotlib/backends/_backend_tk.py: E203, E222, E225, E231, E271, E301, E303, E401, E501, E701
lib/matplotlib/backends/backend_agg.py: E261, E302, E701
lib/matplotlib/backends/backend_cairo.py: E203, E221, E261, E303, E402
lib/matplotlib/backends/backend_gtk3.py: E203, E221, E222, E225, E251, E261, E501
lib/matplotlib/backends/backend_macosx.py: E231, E261
lib/matplotlib/backends/backend_pgf.py: E303, E731
lib/matplotlib/backends/backend_ps.py: E203, E225, E228, E231, E261, E262, E302, E303, E501, E701
lib/matplotlib/backends/backend_svg.py: E203, E225, E228, E231, E261, E302, E501
lib/matplotlib/backends/qt_editor/formlayout.py: E301, E501
lib/matplotlib/backends/tkagg.py: E231, E302, E701
lib/matplotlib/backends/windowing.py: E301, E302
lib/matplotlib/font_manager.py: E203, E221, E251, E261, E262, E302, E501
lib/matplotlib/fontconfig_pattern.py: E201, E203, E221, E222, E225, E302
lib/matplotlib/legend_handler.py: E201, E501
lib/matplotlib/mathtext.py: E201, E202, E203, E211, E221, E222, E225, E231, E251, E261, E301, E302, E303, E402, E501
lib/matplotlib/patheffects.py: E231
lib/matplotlib/projections/geo.py: E203, E221, E231, E261, E502
lib/matplotlib/pylab.py: E501
lib/matplotlib/pyplot.py: E201, E202, E221, E222, E225, E231, E251, E261, E501
lib/matplotlib/rcsetup.py: E203, E225, E261, E302, E501
lib/matplotlib/sphinxext/mathmpl.py: E302
lib/matplotlib/sphinxext/only_directives.py: E302
lib/matplotlib/sphinxext/plot_directive.py: E261, E302, E402
lib/matplotlib/tests/test_image.py: E231
lib/matplotlib/tests/test_mathtext.py: E501
lib/matplotlib/transforms.py: E201, E202, E203, E501
lib/matplotlib/tri/triinterpolate.py: E201, E221
lib/matplotlib/type1font.py: E731

mpl_toolkits/__init__.py: E261
mpl_toolkits/axes_grid/axes_rgb.py: E501
mpl_toolkits/axes_grid1/axes_divider.py: E402, E501
mpl_toolkits/axes_grid1/axes_grid.py: E225
mpl_toolkits/axes_grid1/axes_rgb.py: E231
mpl_toolkits/axes_grid1/axes_size.py: E261, E501
mpl_toolkits/axes_grid1/colorbar.py: E225, E231, E261, E262, E302, E303, E501, E701
mpl_toolkits/axes_grid1/inset_locator.py: E501
mpl_toolkits/axes_grid1/mpl_axes.py: E303, E501
mpl_toolkits/axisartist/angle_helper.py: E201, E203, E221, E222, E225, E231, E251, E261, E262, E302, E303, E501
mpl_toolkits/axisartist/axis_artist.py: E201, E202, E221, E225, E228, E231, E251, E261, E262, E302, E303, E402, E501, E701
mpl_toolkits/axisartist/axisline_style.py: E231, E261, E262, E302, E303
mpl_toolkits/axisartist/axislines.py: E225, E231, E261, E303, E501
mpl_toolkits/axisartist/clip_path.py: E225, E302, E303, E501
mpl_toolkits/axisartist/floating_axes.py: E225, E231, E261, E262, E302, E303, E402, E501
mpl_toolkits/axisartist/grid_finder.py: E231, E261, E302, E303, E402
mpl_toolkits/axisartist/grid_helper_curvelinear.py: E225, E231, E261, E262, E271, E302, E303, E501
mpl_toolkits/mplot3d/art3d.py: E203, E222, E225, E231
mpl_toolkits/mplot3d/axes3d.py: E203, E231, E402, E501, E701
mpl_toolkits/mplot3d/axis3d.py: E231, E302
mpl_toolkits/mplot3d/proj3d.py: E231, E302, E303
mpl_toolkits/tests/test_axes_grid1.py: E201, E202
mpl_toolkits/tests/test_mplot3d.py: E231, E302
lib/mpl_toolkits/__init__.py: E261
lib/mpl_toolkits/axes_grid/axes_rgb.py: E501
lib/mpl_toolkits/axes_grid1/axes_divider.py: E402, E501
lib/mpl_toolkits/axes_grid1/axes_grid.py: E225
lib/mpl_toolkits/axes_grid1/axes_rgb.py: E231
lib/mpl_toolkits/axes_grid1/axes_size.py: E261, E501
lib/mpl_toolkits/axes_grid1/colorbar.py: E225, E231, E261, E262, E302, E303, E501, E701
lib/mpl_toolkits/axes_grid1/inset_locator.py: E501
lib/mpl_toolkits/axes_grid1/mpl_axes.py: E303, E501
lib/mpl_toolkits/axisartist/angle_helper.py: E201, E203, E221, E222, E225, E231, E251, E261, E262, E302, E303, E501
lib/mpl_toolkits/axisartist/axis_artist.py: E201, E202, E221, E225, E228, E231, E251, E261, E262, E302, E303, E402, E501, E701
lib/mpl_toolkits/axisartist/axisline_style.py: E231, E261, E262, E302, E303
lib/mpl_toolkits/axisartist/axislines.py: E225, E231, E261, E303, E501
lib/mpl_toolkits/axisartist/clip_path.py: E225, E302, E303, E501
lib/mpl_toolkits/axisartist/floating_axes.py: E225, E231, E261, E262, E302, E303, E402, E501
lib/mpl_toolkits/axisartist/grid_finder.py: E231, E261, E302, E303, E402
lib/mpl_toolkits/axisartist/grid_helper_curvelinear.py: E225, E231, E261, E262, E271, E302, E303, E501
lib/mpl_toolkits/mplot3d/art3d.py: E203, E222, E225, E231
lib/mpl_toolkits/mplot3d/axes3d.py: E203, E231, E402, E501, E701
lib/mpl_toolkits/mplot3d/axis3d.py: E231, E302
lib/mpl_toolkits/mplot3d/proj3d.py: E231, E302, E303
lib/mpl_toolkits/tests/test_axes_grid1.py: E201, E202
lib/mpl_toolkits/tests/test_mplot3d.py: E231, E302

doc/conf.py: E402, E501
doc/sphinxext/github.py: E302, E501
Expand Down
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -38,12 +38,13 @@ addons:
- lmodern
- otf-freefont
- pgf
- qtbase5-dev
- texlive-fonts-recommended
- texlive-latex-base
- texlive-latex-extra
- texlive-latex-recommended
- texlive-xetex
- texlive-luatex
- texlive-xetex

env:
global:
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/backends/qt_editor/figureoptions.py
Expand Up @@ -217,7 +217,7 @@ def apply_callback(data):
rgba = mcolors.to_rgba(color)
line.set_alpha(None)
line.set_color(rgba)
if marker is not 'none':
if not isinstance(marker, str) or marker != 'none':
line.set_marker(marker)
line.set_markersize(markersize)
line.set_markerfacecolor(markerfacecolor)
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/mlab.py
Expand Up @@ -3665,8 +3665,8 @@ def __init__(self, dataset, bw_method=None):
elif (isString and bw_method == 'silverman'):
self.covariance_factor = self.silverman_factor
elif (np.isscalar(bw_method) and not isString):
self._bw_method = 'use constant'
self.covariance_factor = lambda: bw_method
self._bw_method = 'use constant'
self.covariance_factor = lambda: bw_method
elif callable(bw_method):
self._bw_method = bw_method
self.covariance_factor = lambda: self._bw_method(self)
Expand Down
8 changes: 3 additions & 5 deletions lib/matplotlib/pyplot.py
Expand Up @@ -2176,11 +2176,10 @@ def matshow(A, fignum=None, **kwargs):
fignum : None or int or False
If *None*, create a new figure window with automatic numbering.
If *fignum* is an integer, draw into the figure with the given number
If a nonzero integer, draw into the figure with the given number
(create it if it does not exist).
If 0 or *False*, use the current axes if it exists instead of creating
a new figure.
If 0, use the current axes (or create one if it does not exist).
.. note::
Expand All @@ -2198,7 +2197,7 @@ def matshow(A, fignum=None, **kwargs):
"""
A = np.asanyarray(A)
if fignum is False or fignum is 0:
if fignum == 0:
ax = gca()
else:
# Extract actual aspect ratio of array and make appropriately sized figure
Expand All @@ -2207,7 +2206,6 @@ def matshow(A, fignum=None, **kwargs):

im = ax.matshow(A, **kwargs)
sci(im)

return im


Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/scale.py
Expand Up @@ -108,7 +108,7 @@ def transform_non_affine(self, a):
# pass. On the other hand, in practice, we want to clip beyond
# np.log10(np.nextafter(0, 1)) ~ -323
# so 1000 seems safe.
out[a <= 0] = -1000
out[a <= 0] = -1000
return out

def __str__(self):
Expand Down
3 changes: 0 additions & 3 deletions lib/matplotlib/tests/test_preprocess_data.py
Expand Up @@ -41,11 +41,8 @@ def test_compiletime_checks():
"""test decorator invocations -> no replacements"""

def func(ax, x, y): pass

def func_args(ax, x, y, *args): pass

def func_kwargs(ax, x, y, **kwargs): pass

def func_no_ax_args(*args, **kwargs): pass

# this is ok
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/widgets.py
Expand Up @@ -762,7 +762,7 @@ def _rendercursor(self):

def _notify_submit_observers(self):
for cid, func in self.submit_observers.items():
func(self.text)
func(self.text)

def _release(self, event):
if self.ignore(event):
Expand Down
3 changes: 1 addition & 2 deletions requirements/testing/travis_flake8.txt
@@ -1,4 +1,3 @@
# Extra pip requirements for the travis flake8 build

flake8
flake8-per-file-ignores
flake8>=3.7

0 comments on commit 112c19f

Please sign in to comment.