摘要: from numpy import * import matplotlib.pyplot as plt x = linspace(-5, 5) x3 = linspace(-1, -1) y3 = linspace(-10, 10) y1 = x * 2 y2 = x ** 2 + 1 plt.xl 阅读全文
posted @ 2023-04-03 15:09 scholar-for-ever 阅读(49) 评论(0) 推荐(0) 编辑
摘要: import numpy as np import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties # 解决汉字显示出错 font_set = FontProperties(fname=r'c:\ 阅读全文
posted @ 2023-04-03 06:43 scholar-for-ever 阅读(50) 评论(0) 推荐(0) 编辑
摘要: import numpy as np import matplotlib.pyplot as plt x = np.linspace(-2, 2) # 定义域x的取值范围 y1 = x * 2 # 表达式 y2 = x ** 2 + 1 plt.xlim(-2, 2) # x轴坐标的取值区间 plt 阅读全文
posted @ 2023-04-03 06:42 scholar-for-ever 阅读(11) 评论(0) 推荐(0) 编辑