Matplotlib.artist.artist.update()
Python matplotlib库的artist模块中的update()方法用于从字典道具中更新这个artist的属性。
语法:Artist.update(self, props)
参数:该方法接受以下参数。
- props:该参数是属性的字典。
Returns:该方法不返回任何值。
下面的例子说明了matplotlib中的matplotlib.artist.artist.update()函数:
示例1
输出:
示例2
输出: