摘要:
import numpy as np import matplotlib.pyplot as plt x = np.linspace(-3, 3, 50) y = 2 * x + 1 plt.figure(figsize=(8, 5)) ax = plt.gca() ax.spines['right 阅读全文
摘要:
import numpy as np import matplotlib.pyplot as plt x = np.linspace(-3, 3, 50) y1 = 2 * x + 1 y2 = x * x plt.figure(num=3, figsize=(8, 5)) # 设置范围 plt.x 阅读全文
摘要:
import matplotlib.pyplot as plt import numpy as np # 一维数组, 元素为从-3到3之间均匀地产生50个点 x = np.linspace(-3, 3, 50) y1 = 2 * x + 1 y2 = x ** 2 # num=3表示图片上方标题, 阅读全文