标题:有人回答吗?感谢啊
只看楼主
mo_py
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2018-11-10
 问题点数:0 回复次数:0 
有人回答吗?感谢啊
import numpy as np
from matplotlib import pylab
import seaborn as sns
font.set_size(20)
x = np.linspace(1.0, 13.0, 7)
y = np.sin(x)
pylab.figure(figsize = (12,6))
pylab.scatter(x,y, s = 85, marker='x', color = 'r')
pylab.title(u'$f(x)$离散点分布', fontproperties = font)


(python3.7)

运行结果:Traceback (most recent call last):
     File "D:\python\learn\绘制散点图.py", line 4, in <module>
    font.set_size(20)
    NameError: name 'font' is not defined






搜索更多相关主题的帖子: import call File 绘制 line 
2018-11-10 19:24



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-491144-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.114204 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved