欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

matplotlib繪圖實例演示標(biāo)記路徑

 更新時間:2018年01月23日 11:56:10   投稿:mengwei  
這篇文章主要介紹了matplotlib繪圖實例演示標(biāo)記路徑,分享了相關(guān)代碼示例,小編覺得還是挺不錯的,具有一定借鑒價值,需要的朋友可以參考下

標(biāo)記路徑

演示效果:

實例代碼

import matplotlib.pyplot as plt
import matplotlib.path as mpath
import numpy as np


star = mpath.Path.unit_regular_star(6)
circle = mpath.Path.unit_circle()
# concatenate the circle with an internal cutout of the star
verts = np.concatenate([circle.vertices, star.vertices[::-1, ...]])
codes = np.concatenate([circle.codes, star.codes])
cut_star = mpath.Path(verts, codes)


plt.plot(np.arange(10)**2, '--r', marker=cut_star, markersize=15)

plt.show()

總結(jié)

以上就是本文關(guān)于matplotlib繪圖實例演示標(biāo)記路徑的全部內(nèi)容,希望對大家有所幫助。感興趣的朋友可以繼續(xù)參閱本站其他相關(guān)專題,如有不足之處,歡迎留言指出。感謝朋友們對本站的支持!

相關(guān)文章

最新評論