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

Method reset_shape

daft.py:1294–1298  ·  view source on GitHub ↗
(self, shape, adj_origin=False)

Source from the content-addressed store, hash-verified

1292 self._ax = None
1293
1294 def reset_shape(self, shape, adj_origin=False):
1295 # shape is scaled by grid_unit
1296 # so divide by grid_unit for proper shape
1297 self.shape = shape / self.grid_unit + self.padding
1298 self.figsize = self.grid_unit * self.shape / self.shp_fig_scale
1299
1300 def reset_origin(self, origin, adj_shape=False):
1301 # origin is scaled by grid_unit

Callers 1

renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected