摘要:
import matplotlib.pyplot as plt import numpy as np x = np.linspace(-3,3,50) y = 2*x+1 plt.figure() #范围 plt.xlim((-3,4)) plt.ylim((-3,6)) #轴含义(标签) plt. 阅读全文
摘要:
import matplotlib.pyplot as plt import numpy as np x = np.linspace(-1,1,50) y1 = 2*x+1 y2 = x**2 plt.figure() #范围 plt.xlim((-1,2)) plt.ylim((-2,3)) #轴 阅读全文
摘要:
```pythonimport matplotlib.pyplot as pltimport numpy as np x = np.linspace(-1,1,50)y1 = 2*x+1y2 = x**2 plt.figure()plt.plot(x,y2)plt.plot(x,y1,color=' 阅读全文
摘要:
import matplotlib.pyplot as plt import numpy as np x = np.linspace(-1,1,50) y1 = 2*x+1 y2 = x**2 plt.figure() plt.plot(x,y2) plt.plot(x,y1,color='red' 阅读全文
摘要:
import matplotlib.pyplot as plt import numpy as np x = np.linspace(-1,1,50) y1 = 2*x+1 y2 = x**2 plt.figure(num=1,figsize=(10,10)) plt.plot(x,y1) plt. 阅读全文
摘要:
import matplotlib.pyplot as plt import numpy as np x = np.linspace(-1,1,50) #y = 2*x+1 y = x**2 plt.plot(x,y) plt.show() 阅读全文