from pylab import *
from numpy import *
import matplotlib.pyplot as plt
x = linspace(-10,10,5)
y = x ** 2
x2 = linspace(-20,20,100)
y2 = x2 ** 2
figure()
plot(x,y,'r')
plot(x2,y2,'b')
xlabel('x')
ylabel('y')
title('title')
plt.show()
matplotlib 使用
最新推荐文章于 2024-10-23 15:40:32 发布
