本文整理汇总了Python中matplotlib.artist.Artist.update_from方法的典型用法代码示例。如果您正苦于以下问题:Python Artist.update_from方法的具体用法?Python Artist.update_from怎么用?Python Artist.update_from使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类matplotlib.artist.Artist
的用法示例。
在下文中一共展示了Artist.update_from方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: update_from
# 需要导入模块: from matplotlib.artist import Artist [as 别名]
# 或者: from matplotlib.artist.Artist import update_from [as 别名]
def update_from(self, other):
'Copy properties from other to self'
Artist.update_from(self, other)
self._color = other._color
self._multialignment = other._multialignment
self._verticalalignment = other._verticalalignment
self._horizontalalignment = other._horizontalalignment
self._fontproperties = other._fontproperties.copy()
self._rotation = other._rotation
self._picker = other._picker
self._linespacing = other._linespacing
示例2: poly_changed
# 需要导入模块: from matplotlib.artist import Artist [as 别名]
# 或者: from matplotlib.artist.Artist import update_from [as 别名]
def poly_changed(self, poly):
'this method is called whenever the polygon object is called'
# only copy the artist props to the line (except visibility)
vis = self.line.get_visible()
Artist.update_from(self.line, poly)
self.line.set_visible(vis) # don't use the poly visibility state