本文整理匯總了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)