Skip to content

Commit 8d781c3

Browse files
authored
Merge pull request #11968 from meeseeksmachine/auto-backport-of-pr-11963-on-v3.0.x
Backport PR #11963 on branch v3.0.x
2 parents 4b66fed + feffa1c commit 8d781c3

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

.flake8

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ per-file-ignores =
3333
matplotlib/backend_bases.py: E225
3434
matplotlib/backends/_backend_tk.py: E203, E222, E225, E231, E271, E301, E303, E401, E501, E701
3535
matplotlib/backends/backend_agg.py: E261, E302, E701
36-
matplotlib/backends/backend_cairo.py: E203, E221, E261, E303, E402, E711
36+
matplotlib/backends/backend_cairo.py: E203, E221, E261, E303, E402
3737
matplotlib/backends/backend_gtk3.py: E203, E221, E222, E225, E251, E261, E501
3838
matplotlib/backends/backend_macosx.py: E231, E261
3939
matplotlib/backends/backend_pgf.py: E303, E731
@@ -70,7 +70,7 @@ per-file-ignores =
7070
mpl_toolkits/axes_grid1/inset_locator.py: E501
7171
mpl_toolkits/axes_grid1/mpl_axes.py: E303, E501
7272
mpl_toolkits/axisartist/angle_helper.py: E201, E203, E221, E222, E225, E231, E251, E261, E262, E302, E303, E501
73-
mpl_toolkits/axisartist/axis_artist.py: E201, E202, E221, E225, E228, E231, E251, E261, E262, E302, E303, E402, E501, E701, E711
73+
mpl_toolkits/axisartist/axis_artist.py: E201, E202, E221, E225, E228, E231, E251, E261, E262, E302, E303, E402, E501, E701
7474
mpl_toolkits/axisartist/axisline_style.py: E231, E261, E262, E302, E303
7575
mpl_toolkits/axisartist/axislines.py: E225, E231, E261, E303, E501
7676
mpl_toolkits/axisartist/clip_path.py: E225, E302, E303, E501

lib/matplotlib/backends/backend_cairo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def set_clip_path(self, path):
506506

507507
def set_dashes(self, offset, dashes):
508508
self._dashes = offset, dashes
509-
if dashes == None:
509+
if dashes is None:
510510
self.ctx.set_dash([], 0) # switch dashes off
511511
else:
512512
self.ctx.set_dash(

lib/matplotlib/font_manager.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@
128128
"/Network/Library/Fonts/",
129129
"/System/Library/Fonts/",
130130
# fonts installed via MacPorts
131-
"/opt/local/share/fonts"
132-
""
131+
"/opt/local/share/fonts",
132+
"",
133133
]
134134

135135
if not USE_FONTCONFIG and sys.platform != 'win32':

lib/matplotlib/rcsetup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ def _validate_linestyle(ls):
10891089
'font.cursive': [['Apple Chancery', 'Textile', 'Zapf Chancery',
10901090
'Sand', 'Script MT', 'Felipa', 'cursive'],
10911091
validate_stringlist],
1092-
'font.fantasy': [['Comic Sans MS', 'Chicago', 'Charcoal', 'Impact'
1092+
'font.fantasy': [['Comic Sans MS', 'Chicago', 'Charcoal', 'Impact',
10931093
'Western', 'Humor Sans', 'xkcd', 'fantasy'],
10941094
validate_stringlist],
10951095
'font.monospace': [['DejaVu Sans Mono', 'Bitstream Vera Sans Mono',

lib/mpl_toolkits/axisartist/axis_artist.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ def set_axisline_style(self, axisline_style=None, **kw):
972972
available styles as a list of strings.
973973
"""
974974

975-
if axisline_style==None:
975+
if axisline_style is None:
976976
return AxislineStyle.pprint_styles()
977977

978978
if isinstance(axisline_style, AxislineStyle._Base):

lib/mpl_toolkits/mplot3d/art3d.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ def set_3d_properties(self, zs=0, zdir='z'):
144144
try:
145145
# If *zs* is a list or array, then this will fail and
146146
# just proceed to juggle_axes().
147-
zs = float(zs)
148-
zs = [zs for x in xs]
147+
zs = np.full_like(xs, fill_value=float(zs))
149148
except TypeError:
150149
pass
151150
self._verts3d = juggle_axes(xs, ys, zs, zdir)

0 commit comments

Comments
 (0)