本文整理汇总了Python中matplotlib.text._AnnotationBase.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python _AnnotationBase.__init__方法的具体用法?Python _AnnotationBase.__init__怎么用?Python _AnnotationBase.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类matplotlib.text._AnnotationBase
的用法示例。
在下文中一共展示了_AnnotationBase.__init__方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from matplotlib.text import _AnnotationBase [as 别名]
# 或者: from matplotlib.text._AnnotationBase import __init__ [as 别名]
def __init__(self, pad=None, sep=None, width=None, height=None,
align="baseline", mode="fixed",
children=None):
"""
*pad* : boundary pad
*sep* : spacing between items
*width*, *height* : width and height of the container box.
calculated if None.
*align* : alignment of boxes
*mode* : packing mode
.. note::
*pad* and *sep* need to given in points and will be
scale with the renderer dpi, while *width* and *height*
need to be in pixels.
"""
super(VPacker, self).__init__(pad, sep, width, height,
align, mode,
children)
示例2: __init__
# 需要导入模块: from matplotlib.text import _AnnotationBase [as 别名]
# 或者: from matplotlib.text._AnnotationBase import __init__ [as 别名]
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# Clipping has not been implemented in the OffesetBox family, so
# disable the clip flag for consistency. It can always be turned back
# on to zero effect.
self.set_clip_on(False)
self._children = []
self._offset = (0, 0)