packages/vaex-ui/vaex/ui/plugin/dispersions.py
def _recompute_transform(self):
		"""NOTE: This cannot be called until after this has been added
				 to an Axes, otherwise unit conversion will fail. This
				 maxes it very important to call the accessor method and
				 not directly access the transformation member variable.
		"""
		center = (self.convert_xunits(self.center[0]),
				  self.convert_yunits(self.center[1]))
		width = self.width #self.convert_xunits(self.width)
		height = self.height #self.convert_yunits(self.height)
		trans = artist.Artist.get_transform(self)
		self._patch_transform = transforms.Affine2D() \
			.scale(width * 0.5 * self.scale, height * 0.5* self.scale) \
			.rotate_deg(self.angle) \
			.translate(*trans.transform(center))
def _recompute_transform(self):
		"""NOTE: This cannot be called until after this has been added
				 to an Axes, otherwise unit conversion will fail. This
				 maxes it very important to call the accessor method and
				 not directly access the transformation member variable.
		"""
		center = (self.convert_xunits(self.center[0]),
				  self.convert_yunits(self.center[1]))
		width = self.width #self.convert_xunits(self.width)
		height = self.height #self.convert_yunits(self.height)
		trans = artist.Artist.get_transform(self)
		self._patch_transform = transforms.Affine2D() \
			.scale(width * 0.5 * self.scale, height * 0.5* self.scale) \
			.rotate_deg(self.angle) \
			.translate(*trans.transform(center))
NOTE: This cannot be called until after this has been added
				 to an Axes, otherwise unit conversion will fail. This
				 maxes it very important to call the accessor method and
				 not directly access the transformation member variable.