首先看看演示結(jié)果:

實(shí)現(xiàn)代碼
import matplotlib.pyplot as pltplt.text(0.8, 0.5, "python", size=50, rotation=30., ha="center", va="center", bbox=dict(boxstyle="round", ec=(1., 0.5, 0.5), fc=(1., 0.8, 0.8), ) )plt.text(0.75, 0.6, "www.jb51.net", size=50, rotation=-30., ha="right", va="top", bbox=dict(boxstyle="square", ec=(1., 0.5, 0.5), fc=(1., 0.8, 0.8), ) )plt.draw()plt.show()
以上就是本文關(guān)于Python+matplotlib實(shí)現(xiàn)華麗的文本框演示代碼的全部?jī)?nèi)容,希望對(duì)大家有所幫助。感興趣的朋友可以繼續(xù)參閱本站其他相關(guān)專題,如有不足之處,歡迎留言指出。感謝朋友們對(duì)本站的支持!
新聞熱點(diǎn)
疑難解答
圖片精選