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

Skip to content

Commit 52b711f

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pylab_examples/legend_demo5.py

Lines 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)