Skip to content

Commit d7493a5

Browse files
authored
Merge pull request #11869 from anntzer/style
Style fixes.
2 parents f2ae08a + d9c9d2b commit d7493a5

File tree

7 files changed

+323
-263
lines changed

7 files changed

+323
-263
lines changed

.flake8

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,17 @@ per-file-ignores =
3535
matplotlib/backends/backend_agg.py: E261, E302, E701
3636
matplotlib/backends/backend_cairo.py: E203, E221, E261, E303, E402, E711
3737
matplotlib/backends/backend_gtk3.py: E203, E221, E222, E225, E251, E261, E501
38-
matplotlib/backends/backend_macosx.py: E231, E261
3938
matplotlib/backends/backend_pgf.py: E303, E731
40-
matplotlib/backends/backend_ps.py: E203, E225, E228, E231, E261, E262, E302, E303, E501, E701
41-
matplotlib/backends/backend_svg.py: E203, E225, E228, E231, E261, E302, E501
4239
matplotlib/backends/qt_editor/formlayout.py: E301, E501
4340
matplotlib/backends/tkagg.py: E231, E302, E701
44-
matplotlib/backends/windowing.py: E301, E302
4541
matplotlib/font_manager.py: E203, E221, E251, E261, E262, E302, E501
4642
matplotlib/fontconfig_pattern.py: E201, E203, E221, E222, E225, E302
4743
matplotlib/legend_handler.py: E201, E501
4844
matplotlib/mathtext.py: E201, E202, E203, E211, E221, E222, E225, E251, E301, E402
4945
matplotlib/patheffects.py: E231
5046
matplotlib/projections/geo.py: E203, E221, E231, E261, E502
5147
matplotlib/pylab.py: E501
52-
matplotlib/pyplot.py: E201, E202, E221, E222, E225, E231, E251, E261, E302, E501, E701
48+
matplotlib/pyplot.py: E302, E701
5349
matplotlib/rcsetup.py: E203, E225, E261, E302, E501
5450
matplotlib/sphinxext/mathmpl.py: E302
5551
matplotlib/sphinxext/only_directives.py: E302

lib/matplotlib/backends/backend_macosx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ def set_cursor(self, cursor):
162162
def save_figure(self, *args):
163163
filename = _macosx.choose_save_file('Save the figure',
164164
self.canvas.get_default_filename())
165-
if filename is None: # Cancel
165+
if filename is None: # Cancel
166166
return
167167
self.canvas.figure.savefig(filename)
168168

169169
def prepare_configure_subplots(self):
170-
toolfig = Figure(figsize=(6,3))
170+
toolfig = Figure(figsize=(6, 3))
171171
canvas = FigureCanvasMac(toolfig)
172172
toolfig.subplots_adjust(top=0.9)
173173
tool = SubplotTool(self.canvas.figure, toolfig)

0 commit comments

Comments
 (0)