摘要: 绘制漫画风格图import matplotlib.pyplot as pltplt.xkcd()fig = plt.figure()ax = fig.add_subplot(1, 1, 1)ax.spines['right'].set_color('none... 阅读全文
posted @ 2018-10-18 11:07 一小白 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 把字体都设置成为“Times New Roman”plt.figure(figsize=[15,8])plt.scatter(X, Y, label = 'RealValue')plt.plot(X, func(X, a, b), 'red', label ... 阅读全文
posted @ 2018-10-18 11:01 一小白 阅读(6249) 评论(0) 推荐(0) 编辑
摘要: 默认画图from scipy.stats import normimport matplotlib.pyplot as pltimport numpy as npx = np.arange(-3, 3, 0.001)plt.plot(x, norm.pdf(... 阅读全文
posted @ 2018-10-18 10:43 一小白 阅读(4127) 评论(0) 推荐(0) 编辑