MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_closed

Method set_closed

lib/matplotlib/patches.py:1269–1282  ·  view source on GitHub ↗

Set whether the polygon is closed. Parameters ---------- closed : bool True if the polygon is closed

(self, closed)

Source from the content-addressed store, hash-verified

1267 return self._closed
1268
1269 def set_closed(self, closed):
1270 """
1271 Set whether the polygon is closed.
1272
1273 Parameters
1274 ----------
1275 closed : bool
1276 True if the polygon is closed
1277 """
1278 if self._closed == bool(closed):
1279 return
1280 self._closed = bool(closed)
1281 self.set_xy(self.get_xy())
1282 self.stale = True
1283
1284 def get_xy(self):
1285 """

Callers

nothing calls this directly

Calls 2

set_xyMethod · 0.95
get_xyMethod · 0.95

Tested by

no test coverage detected