def _set_lim_and_transforms(self): PolarAxes._set_lim_and_transforms(self) self.transProjection = self.NorthPolarTransform() self.axisProjection = self.NorthPolarAxisTransform() self.transData = ( Affine2D().scale(numpy.pi/180.0, 1.0/90.0) + self.transScale + self.transProjection + (self.transProjectionAffine + self.transAxes)) self._xaxis_pretransform = ( Affine2D().scale(1.0, 1.0) ) self._xaxis_transform = ( self._xaxis_pretransform + self.axisProjection + self.PolarAffine(IdentityTransform(), Bbox.unit()) + self.transAxes) self._xaxis_text1_transform = ( self._theta_label1_position + self._xaxis_transform) self._yaxis_transform = ( Affine2D().scale(numpy.pi*2.0, 1.0) + self.transScale + self.axisProjection + (self.transProjectionAffine + self.transAxes)) self._yaxis_text1_transform = ( self._r_label1_position + Affine2D().translate(0.0, -0.051) + self._yaxis_transform)
def _set_lim_and_transforms(self): """ Overrides the method with the same name in the PolarAxes-class. This method replaces the same method in the PolarAxes-class. It ensures that the limits and label placement fit the north-polar projection. """ PolarAxes._set_lim_and_transforms(self) self.transProjection = self.NorthPolarTransform() # pylint: attribute-defined-outside-init,invalid-name self.transData = ( self.transScale + self.transProjection + (self.transProjectionAffine + self.transAxes)) # pylint: attribute-defined-outside-init,invalid-name self._xaxis_transform = ( self.transProjection + self.PolarAffine(IdentityTransform(), Bbox.unit()) + self.transAxes) # pylint: attribute-defined-outside-init self._xaxis_text1_transform = ( self._theta_label1_position + self._xaxis_transform) # pylint: attribute-defined-outside-init self._yaxis_transform = ( Affine2D().scale(np.pi * 2.0, 1.0) + self.transData) # pylint: attribute-defined-outside-init self._yaxis_text1_transform = ( Affine2D().scale(1.0 / 360.0, 1.0) + self._yaxis_transform) # pylint: attribute-defined-outside-init
def _set_lim_and_transforms(self): PolarAxes._set_lim_and_transforms(self) try: theta_position = self._theta_label1_position except AttributeError: theta_position = self.get_theta_offset() self.transProjection = self.GlobeCrossSectionTransform() self.transData = ( self.transScale + self.transProjection + (self.transProjectionAffine + self.transAxes)) self._xaxis_transform = ( self.transProjection + self.PolarAffine(IdentityTransform(), Bbox.unit()) + self.transAxes) self._xaxis_text1_transform = ( theta_position + self._xaxis_transform) self._yaxis_transform = ( Affine2D().scale(num.pi * 2.0, 1.0) + self.transData) try: rlp = getattr(self, '_r_label1_position') except AttributeError: rlp = getattr(self, '_r_label_position') self._yaxis_text1_transform = ( rlp + Affine2D().scale(1.0 / 360.0, 1.0) + self._yaxis_transform)
def _set_lim_and_transforms(self): """ Overrides the method with the same name in the PolarAxes-class. This method replaces the same method in the PolarAxes-class. It ensures that the limits and label placement fit the north-polar projection. """ PolarAxes._set_lim_and_transforms(self) self.transProjection = self.NorthPolarTransform() # pylint: attribute-defined-outside-init,invalid-name self.transData = (self.transScale + self.transProjection + (self.transProjectionAffine + self.transAxes)) # pylint: attribute-defined-outside-init,invalid-name self._xaxis_transform = ( self.transProjection + self.PolarAffine(IdentityTransform(), Bbox.unit()) + self.transAxes ) # pylint: attribute-defined-outside-init self._xaxis_text1_transform = ( self._theta_label1_position + self._xaxis_transform ) # pylint: attribute-defined-outside-init self._yaxis_transform = (Affine2D().scale(np.pi * 2.0, 1.0) + self.transData ) # pylint: attribute-defined-outside-init self._yaxis_text1_transform = ( Affine2D().scale(1.0 / 360.0, 1.0) + self._yaxis_transform ) # pylint: attribute-defined-outside-init
def _set_lim_and_transforms(self): PolarAxes._set_lim_and_transforms(self) self.transProjection = self.GlobeCrossSectionTransform(GlobeCrossSectionAxes.RESOLUTION) self.transData = self.transScale + self.transProjection + (self.transProjectionAffine + self.transAxes) self._xaxis_transform = ( self.transProjection + self.PolarAffine(IdentityTransform(), Bbox.unit()) + self.transAxes ) self._xaxis_text1_transform = self._theta_label1_position + self._xaxis_transform self._yaxis_transform = Affine2D().scale(num.pi * 2.0, 1.0) + self.transData self._yaxis_text1_transform = ( self._r_label1_position + Affine2D().scale(1.0 / 360.0, 1.0) + self._yaxis_transform )
def _set_lim_and_transforms(self): PolarAxes._set_lim_and_transforms(self) self.transProjection = self.GalPolarTransform() self.transData = (self.transScale + self.transProjection + (self.transProjectionAffine + self.transAxes)) self._xaxis_transform = (self.transProjection + self.PolarAffine( IdentityTransform(), Bbox.unit()) + self.transAxes) self._xaxis_text1_transform = (self._theta_label1_position + self._xaxis_transform) self._yaxis_transform = (Affine2D().scale(sc.pi * 2.0, 1.0) + self.transData) self._yaxis_text1_transform = (self._r_label1_position + Affine2D().scale(1.0 / 360.0, 1.0) + self._yaxis_transform)
def _set_lim_and_transforms(self): PolarAxes._set_lim_and_transforms(self) self.transProjection = self.NorthPolarTransform() self.transData = ( self.transScale + self.transProjection + (self.transProjectionAffine + self.transAxes)) self._xaxis_transform = ( self.transProjection + self.PolarAffine(IdentityTransform(), Bbox.unit()) + self.transAxes) self._xaxis_text1_transform = ( self._theta_label1_position + self._xaxis_transform) self._yaxis_transform = ( Affine2D().scale(np.pi * 2.0, 1.0) + self.transData)
def _set_lim_and_transforms(self): """ """ PolarAxes._set_lim_and_transforms(self) self.transProjection = self.DipPolarTransform() # pylint: attribute-defined-outside-init,invalid-name self.transData = (self.transScale + self.transProjection + (self.transProjectionAffine + self.transAxes)) # pylint: attribute-defined-outside-init,invalid-name self._xaxis_transform = ( self.transProjection + self.PolarAffine(IdentityTransform(), Bbox.unit()) + self.transAxes ) # pylint: attribute-defined-outside-init self._xaxis_text1_transform = ( self._theta_label1_position + self._xaxis_transform ) # pylint: attribute-defined-outside-init self._yaxis_transform = (Affine2D().scale(np.pi * 2.0, 1.0) + self.transData ) # pylint: attribute-defined-outside-init self._yaxis_text1_transform = ( Affine2D().scale(1.0 / 360.0, 1.0) + self._yaxis_transform ) # pylint: attribute-defined-outside-init
def _set_lim_and_transforms(self): """ """ PolarAxes._set_lim_and_transforms(self) self.transProjection = self.DipPolarTransform() # pylint: attribute-defined-outside-init,invalid-name self.transData = ( self.transScale + self.transProjection + (self.transProjectionAffine + self.transAxes)) # pylint: attribute-defined-outside-init,invalid-name self._xaxis_transform = ( self.transProjection + self.PolarAffine(IdentityTransform(), Bbox.unit()) + self.transAxes) # pylint: attribute-defined-outside-init self._xaxis_text1_transform = ( self._theta_label1_position + self._xaxis_transform) # pylint: attribute-defined-outside-init self._yaxis_transform = ( Affine2D().scale(np.pi * 2.0, 1.0) + self.transData) # pylint: attribute-defined-outside-init self._yaxis_text1_transform = ( Affine2D().scale(1.0 / 360.0, 1.0) + self._yaxis_transform) # pylint: attribute-defined-outside-init