MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_linedash

Method set_linedash

lib/matplotlib/backends/backend_ps.py:489–499  ·  view source on GitHub ↗
(self, offset, seq, store=True)

Source from the content-addressed store, hash-verified

487 self.linecap = linecap
488
489 def set_linedash(self, offset, seq, store=True):
490 if self.linedash is not None:
491 oldo, oldseq = self.linedash
492 if np.array_equal(seq, oldseq) and oldo == offset:
493 return
494
495 self._pswriter.write(f"[{_nums_to_str(*seq)}] {_nums_to_str(offset)} setdash\n"
496 if seq is not None and len(seq) else
497 "[] 0 setdash\n")
498 if store:
499 self.linedash = (offset, seq)
500
501 def set_font(self, fontname, fontsize, store=True):
502 if (fontname, fontsize) != (self.fontname, self.fontsize):

Callers 1

_draw_psMethod · 0.95

Calls 2

_nums_to_strFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected