本文整理汇总了Python中matplotlib.transforms.Transform类的典型用法代码示例。如果您正苦于以下问题:Python Transform类的具体用法?Python Transform怎么用?Python Transform使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Transform类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, base, linthresh, linscale):
Transform.__init__(self)
self.base = base
self.linthresh = linthresh
self.linscale = linscale
self._linscale_adj = (linscale / (1.0 - self.base ** -1))
self._log_base = np.log(base)
示例2: __init__
def __init__(self, **kwargs):
Transform.__init__(self, **kwargs)
self.dec0 = 0
self.ra0 = 180
self.dec1 = -60
self.dec2 = 30
self._update()
示例3: __init__
def __init__(self, resolution):
"""
Resolution is the number of steps to interpolate between each input
line segment to approximate its path in transformed space.
"""
Transform.__init__(self)
self._resolution = resolution
示例4: __init__
def __init__(self, trans, dpi_scale_trans, fixed_point):
Transform.__init__(self)
self.input_dims = self.output_dims = 2
self.has_inverse = False
self.trans = trans
self.dpi_scale_trans = dpi_scale_trans
self.fixed_point = num.asarray(fixed_point, dtype=num.float)
示例5: __init__
def __init__(self, nonpos):
Transform.__init__(self)
if nonpos == 'mask':
self._handle_nonpos = _mask_non_logit
else:
self._handle_nonpos = _clip_non_logit
self._nonpos = nonpos
示例6: __init__
def __init__(self, nonpos):
Transform.__init__(self)
if nonpos == 'mask':
self._fill_value = np.nan
else:
self._fill_value = 1e-300
self._nonpos = nonpos
示例7: __init__
def __init__(self, resolution):
"""
Create a new Hammer transform. Resolution is the number of steps
to interpolate between each input line segment to approximate its
path in curved Hammer space.
"""
Transform.__init__(self)
self._resolution = resolution
示例8: __init__
def __init__(self, resolution):
'''Create a new Split Lambert transform.
Resolution is the number of steps to interpolate between each
input line segment to approximate its path in curved Lambert space.
'''
Transform.__init__(self)
self._resolution = resolution
示例9: __init__
def __init__(self, resolution=None):
"""
Create a new WCS transform.
"""
Transform.__init__(self)
if resolution is None:
resolution = 1
self._resolution = resolution
示例10: __init__
def __init__(self, projection, resolution):
"""
Create a new Mollweide transform. Resolution is the number of steps
to interpolate between each input line segment to approximate its
path in curved Mollweide space.
"""
self.projection = projection
Transform.__init__(self)
self._resolution = resolution
示例11: __init__
def __init__(self, center_longitude, center_latitude, resolution):
"""
Create a new Lambert transform. Resolution is the number of steps
to interpolate between each input line segment to approximate its
path in curved Lambert space.
"""
Transform.__init__(self)
self._resolution = resolution
self._center_longitude = center_longitude
self._center_latitude = center_latitude
示例12: __init__
def __init__(self, dist, as_pct=True, out_of_bounds='mask'):
Transform.__init__(self)
self.dist = dist
self.as_pct = as_pct
self.out_of_bounds = out_of_bounds
if self.as_pct:
self.factor = 100.0
else:
self.factor = 1.0
if self.out_of_bounds == 'mask':
self._handle_out_of_bounds = _mask_out_of_bounds
elif self.out_of_bounds == 'clip':
self._handle_out_of_bounds = _clip_out_of_bounds
else:
raise ValueError("`out_of_bounds` muse be either 'mask' or 'clip'")
示例13: __init__
def __init__(self, dist):
self.dist = dist
Transform.__init__(self)
示例14: __init__
def __init__(self, nonpos="mask"):
Transform.__init__(self)
self._nonpos = nonpos
示例15: __init__
def __init__(self, axis=None):
Transform.__init__(self)
self._axis = axis