Create a closed polygonal path going through *vertices*. Unlike ``Path(..., closed=True)``, *vertices* should **not** end with an entry for the CLOSEPATH; this entry is added by `._create_closed`.
(cls, vertices)
| 189 | |
| 190 | @classmethod |
| 191 | def _create_closed(cls, vertices): |
| 192 | """ |
| 193 | Create a closed polygonal path going through *vertices*. |
| 194 | |
| 195 | Unlike ``Path(..., closed=True)``, *vertices* should **not** end with |
| 196 | an entry for the CLOSEPATH; this entry is added by `._create_closed`. |
| 197 | """ |
| 198 | v = _to_unmasked_float_array(vertices) |
| 199 | return cls(np.concatenate([v, v[:1]]), closed=True) |
| 200 | |
| 201 | def _update_values(self): |
| 202 | self._simplify_threshold = mpl.rcParams['path.simplify_threshold'] |