本文整理汇总了Python中matplotlib.collections.LineCollection.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python LineCollection.__init__方法的具体用法?Python LineCollection.__init__怎么用?Python LineCollection.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类matplotlib.collections.LineCollection
的用法示例。
在下文中一共展示了LineCollection.__init__方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from matplotlib.collections import LineCollection [as 别名]
# 或者: from matplotlib.collections.LineCollection import __init__ [as 别名]
def __init__(self, coords, plotSegments, linewidths, linestyle, colors, picker):
LineCollection.__init__(self,
plotSegments,
linewidths=linewidths,
linestyle=linestyle,
colors=colors,
picker=picker
)
示例2: __init__
# 需要导入模块: from matplotlib.collections import LineCollection [as 别名]
# 或者: from matplotlib.collections.LineCollection import __init__ [as 别名]
def __init__(self, x, y, cz,
cmap='jet', linestyle='solid',
pickradius=5, alpha = None, **kargs):
if linestyle is None:
kargs['linestyle'] = 'solid'
self._nodraw = True
else:
kargs['linestyle'] = linestyle
self._nodraw = False
self.x = x
self.y = y
self.cz = cz
self.set_xydata()
self.pickradius = pickradius
segments = self._calc_segments()
# self.set_linewidth(1)
LineCollection.__init__(self, segments, **kargs)
self.set_array(cz)
self._cz_linesytle_name = linestyle
# self._cz_alpha = alpha
self._transformed_path = None
self.set_alpha(alpha)
示例3: __init__
# 需要导入模块: from matplotlib.collections import LineCollection [as 别名]
# 或者: from matplotlib.collections.LineCollection import __init__ [as 别名]
def __init__(self, segments, *args, **kwargs):
'''
Keyword arguments are passed onto :func:`~matplotlib.collections.LineCollection`.
'''
LineCollection.__init__(self, segments, *args, **kwargs)