python matplotlib 的用法

1. 画基本的图

import matplotlib.pyplot as plt

import numpy as np
x = np.linspace(-1,1,50)
y = 2*x+1
plt.plot(x,y)
plt.show()


2.  figure 的用法


猜你喜欢

转载自blog.csdn.net/weixin_39970417/article/details/80792861
今日推荐