(
self, gc, marker_path, marker_trans, path, *args, **kwargs)
| 109 | rgbFace) |
| 110 | |
| 111 | def draw_markers( |
| 112 | self, gc, marker_path, marker_trans, path, *args, **kwargs): |
| 113 | # We do a little shimmy so that all markers are drawn for each path |
| 114 | # effect in turn. Essentially, we induce recursion (depth 1) which is |
| 115 | # terminated once we have just a single path effect to work with. |
| 116 | if len(self._path_effects) == 1: |
| 117 | # Call the base path effect function - this uses the unoptimised |
| 118 | # approach of calling "draw_path" multiple times. |
| 119 | return super().draw_markers(gc, marker_path, marker_trans, path, |
| 120 | *args, **kwargs) |
| 121 | |
| 122 | for path_effect in self._path_effects: |
| 123 | renderer = self.copy_with_path_effect([path_effect]) |
| 124 | # Recursively call this method, only next time we will only have |
| 125 | # one path effect. |
| 126 | renderer.draw_markers(gc, marker_path, marker_trans, path, |
| 127 | *args, **kwargs) |
| 128 | |
| 129 | def draw_path_collection(self, gc, master_transform, paths, *args, |
| 130 | **kwargs): |
no test coverage detected