就啥也不出
就啥也不出
就啥也不出
2020-05-28
import numpy as np import matplotlib.pyplot as plt x = np.linspace(-np.pi,np.pi,256,endpoint=True) c,s=np.cos(x),np.sin(x) plt.figure(1) plt.plot(x,c) plt.plot(x,s) plt.title('SIN&COS') ax=plt.gca() ax.spines["right"].set_color("none") ax.spines["top"].set_color("none") ax.spines["left"].set_position(("data",0)) ax.spines["bottom"].set_position(("data",0)) plt.show()
举报