Set the dash sequence. The dash sequence is a sequence of floats of even length describing the length of dashes and spaces in points. For example, (5, 2, 1, 2) describes a sequence of 5 point and 1 point dashes separated by 2 point spaces. See also
(self, seq)
| 1337 | self.stale = True |
| 1338 | |
| 1339 | def set_dashes(self, seq): |
| 1340 | """ |
| 1341 | Set the dash sequence. |
| 1342 | |
| 1343 | The dash sequence is a sequence of floats of even length describing |
| 1344 | the length of dashes and spaces in points. |
| 1345 | |
| 1346 | For example, (5, 2, 1, 2) describes a sequence of 5 point and 1 point |
| 1347 | dashes separated by 2 point spaces. |
| 1348 | |
| 1349 | See also `~.Line2D.set_gapcolor`, which allows those spaces to be |
| 1350 | filled with a color. |
| 1351 | |
| 1352 | Parameters |
| 1353 | ---------- |
| 1354 | seq : sequence of floats (on/off ink in points) or (None, None) |
| 1355 | If *seq* is empty or ``(None, None)``, the linestyle will be set |
| 1356 | to solid. |
| 1357 | """ |
| 1358 | if seq == (None, None) or len(seq) == 0: |
| 1359 | self.set_linestyle('-') |
| 1360 | else: |
| 1361 | self.set_linestyle((0, seq)) |
| 1362 | |
| 1363 | def update_from(self, other): |
| 1364 | """Copy properties from *other* to self.""" |
no test coverage detected