Set the sketch parameters. Parameters ---------- scale : float, optional The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is `None`, or not provided, no sketch filter will be provided. len
(self, scale=None, length=None, randomness=None)
| 708 | return self._sketch |
| 709 | |
| 710 | def set_sketch_params(self, scale=None, length=None, randomness=None): |
| 711 | """ |
| 712 | Set the sketch parameters. |
| 713 | |
| 714 | Parameters |
| 715 | ---------- |
| 716 | scale : float, optional |
| 717 | The amplitude of the wiggle perpendicular to the source |
| 718 | line, in pixels. If scale is `None`, or not provided, no |
| 719 | sketch filter will be provided. |
| 720 | length : float, optional |
| 721 | The length of the wiggle along the line, in pixels |
| 722 | (default 128.0) |
| 723 | randomness : float, optional |
| 724 | The scale factor by which the length is shrunken or |
| 725 | expanded (default 16.0) |
| 726 | |
| 727 | The PGF backend uses this argument as an RNG seed and not as |
| 728 | described above. Using the same seed yields the same random shape. |
| 729 | |
| 730 | .. ACCEPTS: (scale: float, length: float, randomness: float) |
| 731 | """ |
| 732 | if scale is None: |
| 733 | self._sketch = None |
| 734 | else: |
| 735 | self._sketch = (scale, length or 128.0, randomness or 16.0) |
| 736 | self.stale = True |
| 737 | |
| 738 | def set_path_effects(self, path_effects): |
| 739 | """ |
no outgoing calls