Yep, this is a bug. In backend_ps in the the set_linedashes
>> function on line 103, replace the line if seq: with if seq is
>> not None and len(seq): My guess is you are using numarray, and
>> if memory serves numarray but not Numeric fails on using an
>> array as a boolean, which is what backend ps is doing here.
> Yes, I am using numarray. I made the change to line 103
> and now line 102 is reporting a similar error.
Sorry for all the troubles here. Try this function for set_linedash
def set_linedash(self, offset, seq):
if self.linedash is not None:
oldo, oldseq = self.linedash
if offset==oldo and seq==oldseq: return
if seq is not None and len(seq):
s="[%s] %d setdash\n"%(_nums_to_str(*seq), offset)
self._pswriter.write(" 0 setdash\n")
self.linedash = (offset,seq)