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

Skip to content

Commit 9a3ff5d

Browse files
committed
set_linedash: bug fix
svn path=/trunk/matplotlib/; revision=725
1 parent caababf commit 9a3ff5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def set_linecap(self, linecap):
100100

101101
def set_linedash(self, offset, seq):
102102
if (offset,seq) != self.linedash:
103-
if seq:
103+
if seq is not None and len(seq):
104104
s="[%s] %d setdash\n"%(_nums_to_str(*seq), offset)
105105
self._pswriter.write(s)
106106
else:

0 commit comments

Comments
 (0)