Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 52b711f

Browse filesBrowse files
committed
Merge pull request #5844 from jenshnielsen/pep8leg5
Fix new pep8 issue in legend_demo5
2 parents 30e6bb7 + c28e1b0 commit 52b711f
Copy full SHA for 52b711f

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎examples/pylab_examples/legend_demo5.py

Copy file name to clipboardExpand all lines: examples/pylab_examples/legend_demo5.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def create_artists(self, legend, orig_handle,
4141
lw = orig_handle.get_linewidths()[i]
4242
except IndexError:
4343
lw = orig_handle.get_linewidths()[0]
44-
if dashes[0] != None:
44+
if dashes[0] is not None:
4545
legline.set_dashes(dashes[1])
4646
legline.set_color(color)
4747
legline.set_transform(trans)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.