相关概念: 1.x向量和y向量 import numpy as np import matplotlib.pyplot as plt x = np.array([[0,1,2,3], [0,0,0,0], [0,0,0,0], [0,0,0,0]]) y = np.array([[0,0,0,0], [1,0,0,0], [2,0,0,0], [3,0,0,0]]) plt.plot(x,y, color = 'red', ##全部点设置红色 marker='o', ##形状:实心圆圈 line