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

Method convert

daft.py:1343–1349  ·  view source on GitHub ↗

Convert from model coordinates to plot coordinates.

(self, *xy)

Source from the content-addressed store, hash-verified

1341 return self._ax
1342
1343 def convert(self, *xy):
1344 """
1345 Convert from model coordinates to plot coordinates.
1346
1347 """
1348 assert len(xy) == 2
1349 return self.grid_unit * (np.atleast_1d(xy) - self.origin)
1350
1351
1352def _pop_multiple(_dict, default, *args):

Callers 5

axMethod · 0.95
renderMethod · 0.80
get_frontier_coordMethod · 0.80
_get_coordsMethod · 0.80
renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected