当前位置: 首页>>代码示例>>Python>>正文


Python polar.PolarAxes类代码示例

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


在下文中一共展示了PolarAxes类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

 def __init__(self, *args, **kwargs):
     """
     See Axes base class for args and kwargs documentation
     """
     
     #Uncomment to have the possibility to change the resolution directly 
     #when the instance is created
     #self.RESOLUTION = kwargs.pop('resolution', 100)
     PolarAxes.__init__(self, *args, **kwargs)
     self.set_aspect('equal', adjustable='box', anchor='C')
     self.radii_angle = 67.5
     self.cla()
开发者ID:Bobfrat,项目名称:ooi-ui-services,代码行数:12,代码来源:windrose.py

示例2: cla

    def cla(self):
        """
        Clear the current axes
        """
        PolarAxes.cla(self)

        self.theta_angles = np.arange(0, 360, 45)
        self.theta_labels = ['E', 'N-E', 'N', 'N-W', 'W', 'S-W', 'S', 'S-E']
        self.set_thetagrids(angles=self.theta_angles, labels=self.theta_labels)

        self._info = {'dir' : list(),
                      'bins' : list(),
                      'table' : list()}

        self.patches_list = list()
开发者ID:Bobfrat,项目名称:ooi-ui-services,代码行数:15,代码来源:windrose.py

示例3: cla

    def cla(self):
        """
        Clear the current axes
        """
        PolarAxes.cla(self)
        theta_delta = 30
        self.theta_angles = np.arange(0, 360, theta_delta)
        #        self.theta_labels = ['E', 'N-E', 'N', 'N-W', 'W',
        #                            'S-W', 'S', 'S-E']
        first_quad = range(90, -1, -theta_delta)
        quads = range(330, 89, -theta_delta)
        all_quads = first_quad + quads
        self.theta_labels = [str(a) for a in all_quads]
        self.set_thetagrids(angles=self.theta_angles,
                            labels=self.theta_labels)

        self._info = {'dir': list(),
                      'bins': list(),
                      'table': list()}

        self.patches_list = list()
开发者ID:rvalenzuelar,项目名称:pythonx,代码行数:21,代码来源:rv_windrose.py

示例4: _gen_axes_spines

        def _gen_axes_spines(self):
            if frame == 'circle':
                return PolarAxes._gen_axes_spines(self)

            spine_type = 'circle'
            verts = unit_poly_verts(theta)
            verts.append(verts[0])
            path = Path(verts)

            spine = Spine(self, spine_type, path)
            spine.set_transform(self.transAxes)
            return {'polar': spine}
开发者ID:yangyangjuanjuan,项目名称:wechatAnalyzer,代码行数:12,代码来源:radar_plot.py

示例5: _gen_axes_spines

 def _gen_axes_spines(self):
     if self.radar_patch_type == 'circle':
         return PolarAxes._gen_axes_spines(self)
     # The following is a hack to get the spines (i.e. the axes frame)
     # to draw correctly for a polygon frame.
     spine_type = 'circle'
     verts = unit_poly_verts(self.radar_theta)
     # close off polygon by repeating first vertex
     verts.append(verts[0])
     path = Path(verts)
     spine = Spine(self, self.radar_spine_type, path)
     spine.set_transform(self.transAxes)
     return {'polar': spine}
开发者ID:moonbury,项目名称:pythonanywhere,代码行数:13,代码来源:radar.py

示例6: _gen_axes_spines

 def _gen_axes_spines(self):
     if frame == 'circle':
         return PolarAxes._gen_axes_spines(self)
     # The following is a hack to get the spines (i.e. the axes frame)
     # to draw correctly for a polygon frame.
     # spine_type must be 'left', 'right', 'top', 'bottom', or `circle`.
     spine_type = 'circle'
     verts = unit_poly_verts(theta)
     # close off polygon by repeating first vertex
     verts.append(verts[0])
     path = Path(verts)
     spine = Spine(self, spine_type, path)
     spine.set_transform(self.transAxes)
     return {'polar': spine}
开发者ID:jorgeop27,项目名称:geospatial_analysis_toolbox,代码行数:14,代码来源:heterogeneity_index2.py


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