Parameters ---------- paths : list of `.path.Path` The paths that will make up the `.Collection`. sizes : array-like The factor by which to scale each drawn `~.path.Path`. One unit squared in the Path's data space is scaled to be `
(self, paths, sizes=None, **kwargs)
| 1130 | """ |
| 1131 | |
| 1132 | def __init__(self, paths, sizes=None, **kwargs): |
| 1133 | """ |
| 1134 | Parameters |
| 1135 | ---------- |
| 1136 | paths : list of `.path.Path` |
| 1137 | The paths that will make up the `.Collection`. |
| 1138 | sizes : array-like |
| 1139 | The factor by which to scale each drawn `~.path.Path`. One unit |
| 1140 | squared in the Path's data space is scaled to be ``sizes**2`` |
| 1141 | points when rendered. |
| 1142 | **kwargs |
| 1143 | Forwarded to `.Collection`. |
| 1144 | """ |
| 1145 | |
| 1146 | super().__init__(**kwargs) |
| 1147 | self.set_paths(paths) |
| 1148 | self.set_sizes(sizes) |
| 1149 | self.stale = True |
| 1150 | |
| 1151 | def get_paths(self): |
| 1152 | return self._paths |