本文整理汇总了Python中matplotlib.projections.polar.PolarAxes._gen_axes_spines方法的典型用法代码示例。如果您正苦于以下问题:Python PolarAxes._gen_axes_spines方法的具体用法?Python PolarAxes._gen_axes_spines怎么用?Python PolarAxes._gen_axes_spines使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类matplotlib.projections.polar.PolarAxes
的用法示例。
在下文中一共展示了PolarAxes._gen_axes_spines方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _gen_axes_spines
# 需要导入模块: from matplotlib.projections.polar import PolarAxes [as 别名]
# 或者: from matplotlib.projections.polar.PolarAxes import _gen_axes_spines [as 别名]
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}
示例2: _gen_axes_spines
# 需要导入模块: from matplotlib.projections.polar import PolarAxes [as 别名]
# 或者: from matplotlib.projections.polar.PolarAxes import _gen_axes_spines [as 别名]
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}
示例3: _gen_axes_spines
# 需要导入模块: from matplotlib.projections.polar import PolarAxes [as 别名]
# 或者: from matplotlib.projections.polar.PolarAxes import _gen_axes_spines [as 别名]
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}