MCPcopy Create free account
hub / github.com/daft-dev/daft / ax

Method ax

daft.py:1326–1341  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1324 return self._figure
1325
1326 def ax(self):
1327 if self._ax is not None:
1328 return self._ax
1329
1330 # Add a new axis object if it doesn't exist.
1331 self._ax = self.figure().add_axes(
1332 (0, 0, 1, 1), frameon=False, xticks=[], yticks=[]
1333 )
1334
1335 # Set the bounds.
1336 l0 = self.convert(*self.origin)
1337 l1 = self.convert(*(self.origin + self.shape))
1338 self._ax.set_xlim(l0[0], l1[0])
1339 self._ax.set_ylim(l0[1], l1[1])
1340
1341 return self._ax
1342
1343 def convert(self, *xy):
1344 """

Callers

nothing calls this directly

Calls 2

figureMethod · 0.95
convertMethod · 0.95

Tested by

no test coverage detected