• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python transforms.Transform类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中matplotlib.transforms.Transform的典型用法代码示例。如果您正苦于以下问题:Python Transform类的具体用法?Python Transform怎么用?Python Transform使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Transform类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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)
开发者ID:AdamHeck,项目名称:matplotlib,代码行数:7,代码来源:scale.py


示例2: __init__

 def __init__(self, **kwargs):
     Transform.__init__(self, **kwargs)
     self.dec0 = 0
     self.ra0 = 180
     self.dec1 = -60
     self.dec2 = 30
     self._update()
开发者ID:rainwoodman,项目名称:skymapper,代码行数:7,代码来源:aea_projection.py


示例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
开发者ID:adnanb59,项目名称:matplotlib,代码行数:7,代码来源:test_axisartist_grid_helper_curvelinear.py


示例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)
开发者ID:HerrMuellerluedenscheid,项目名称:pyrocko,代码行数:7,代码来源:beachball.py


示例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
开发者ID:rougier,项目名称:matplotlib,代码行数:7,代码来源:scale.py


示例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
开发者ID:Jajauma,项目名称:dotfiles,代码行数:7,代码来源:scale.py


示例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
开发者ID:adnanb59,项目名称:matplotlib,代码行数:8,代码来源:custom_projection_example.py


示例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
开发者ID:amcmorl,项目名称:amcmorl-py-tools,代码行数:8,代码来源:split_lambert_transforms.py


示例9: __init__

 def __init__(self, resolution=None):
     """
     Create a new WCS transform.
     """
     Transform.__init__(self)
     if resolution is None:
         resolution = 1
     self._resolution = resolution
开发者ID:TuahZh,项目名称:pywcsgrid2,代码行数:8,代码来源:wcs_transforms.py


示例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
开发者ID:pelson,项目名称:mpl_mapping_trial,代码行数:9,代码来源:mollweide.py


示例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
开发者ID:717524640,项目名称:matplotlib,代码行数:10,代码来源:geo.py


示例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'")
开发者ID:phobson,项目名称:mpl-probscale,代码行数:16,代码来源:transforms.py


示例13: __init__

 def __init__(self, dist):
     self.dist = dist
     Transform.__init__(self)
开发者ID:SeanMcKnight,项目名称:wqio,代码行数:3,代码来源:probscale.py


示例14: __init__

 def __init__(self, nonpos="mask"):
     Transform.__init__(self)
     self._nonpos = nonpos
开发者ID:Kojoley,项目名称:matplotlib,代码行数:3,代码来源:scale.py


示例15: __init__

 def __init__(self, axis=None):
     Transform.__init__(self)
     self._axis = axis
开发者ID:CTPUG,项目名称:matplotlib-py3,代码行数:3,代码来源:polar.py


示例16: __init__

 def __init__(self, x_from, y_to):
     self.xpoints = x_from
     self.ypoints = y_to
     Transform.__init__(self)
开发者ID:agile-geoscience,项目名称:welly,代码行数:4,代码来源:scales.py


示例17: __init__

 def __init__(self, projection):
     self.projection = projection
     Transform.__init__(self)
开发者ID:pelson,项目名称:mpl_mapping_trial,代码行数:3,代码来源:custom_projection.py


示例18: __init__

 def __init__(self, exponent):
     Transform.__init__(self)
     self.exponent = exponent
开发者ID:glciampaglia,项目名称:editor-lifecycle,代码行数:3,代码来源:scale.py


示例19: invalidate

 def invalidate(self):
     #print("I don't feel validated! (%s)" % (self.pass_through))
     return Transform.invalidate(self)
开发者ID:AlexaVillaume,项目名称:ginga,代码行数:3,代码来源:transform.py


示例20: transform_affine

 def transform_affine(self, values):
     print 'affine'
     return Transform.transform_affine(self, values)
开发者ID:pelson,项目名称:mpl_mapping_trial,代码行数:3,代码来源:OLD_custom_projection.py



注:本文中的matplotlib.transforms.Transform类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python triangulation.Triangulation类代码示例发布时间:2022-05-27
下一篇:
Python transforms.ScaledTranslation类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap