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

Method reset_origin

daft.py:1300–1306  ·  view source on GitHub ↗
(self, origin, adj_shape=False)

Source from the content-addressed store, hash-verified

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
1302 # so divide by grid_unit for proper shape
1303 self.origin = origin / self.grid_unit - self.padding
1304 if adj_shape:
1305 self.shape -= self.origin
1306 self.figsize = self.grid_unit * self.shape / self.shp_fig_scale
1307
1308 def reset_figure(self):
1309 self.close()

Callers 1

renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected