本文整理汇总了Python中matplotlib.artist.Artist.update_from方法的典型用法代码示例。如果您正苦于以下问题:Python Artist.update_from方法的具体用法?Python Artist.update_from怎么用?Python Artist.update_from使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类matplotlib.artist.Artist
的用法示例。
在下文中一共展示了Artist.update_from方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: poly_changed
# 需要导入模块: from matplotlib.artist import Artist [as 别名]
# 或者: from matplotlib.artist.Artist import update_from [as 别名]
def poly_changed(self, poly):
""" Changed Polygon """
# 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
示例2: points_changed
# 需要导入模块: from matplotlib.artist import Artist [as 别名]
# 或者: from matplotlib.artist.Artist import update_from [as 别名]
def points_changed(self, points):
"""This method is called whenever the points object is called."""
# Only copy the artist props to the line (except visibility).
vis = self.line.get_visible()
Artist.update_from(self.line, points)
# Don't use the points visibility state.
self.line.set_visible(vis)
if self.verbose:
print("\nPoints modified.")
示例3: line_changed
# 需要导入模块: from matplotlib.artist import Artist [as 别名]
# 或者: from matplotlib.artist.Artist import update_from [as 别名]
def line_changed(self, line):
vis = self.line.get_visible()
Artist.update_from(self.line, line)
self.line.set_visible(vis)