阅读背景:

python wordcloud matplotlib(绘图)

来源:互联网 
##############matplotlib################
import maplotlib.pyplot as plt
import numpy as np 
# 绘制曲线
x = linspace(0, 10, 100)
ps = plot(x, sin(x), x, cos(x))
# 加文字
t1 = text(1, -0.5, "hello")
# 文字坐标改变
t1.set_position([7, -0.5])
# 文字移除
t1.remove()

# 曲线移除
Artist.remove()

# y轴范围
ylim(-1.1, 1.1)##############matplotlib################



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: