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