摘要:
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 阅读全文
摘要:
import numpy as np import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties # 解决汉字显示出错 font_set = FontProperties(fname=r'c:\ 阅读全文
摘要:
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 阅读全文