在图表自定义相关的说明
import matplotlib.pyplot as plt
import numpy as np
# 设置数据
x = np.linspace(-3, 3, 50)
y = 2*x + 1
# 定义figure,绘图
plt.figure(num=1, figsize=(8, 5),)
plt.plot(x, y,) # plt.scatter(x, y,) 散点图
# 坐标轴设置
ax = plt.gca()
ax.spines['right'].set_color('none')
ax.spines[