python 绘制抛物线

%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
x = range(100)

y = [val**2 for val in x]

plt.plot(x,y)#plotting x and y

输出效果:

posted @ 2018-05-18 17:41  tryFighting  阅读(4023)  评论(0编辑  收藏  举报