import matplotlib.pyplot as plt
import numpy as np
%matplotlib inline
def quadratic(var):
return 2*pow(var,2)
x=np.arrange(0,.5,.1)
plt.plot(x,quadratic(x))
pli.plot([1,4],[qoadratic(1),quadratic(4)],linewidth=2.0)
pli.plot([1,4],[qoadratic(1),quadratic(1)],linewidth=3.0,label="Change in x")
pli.plot([4,4],[qoadratic(1),quadratic(4)],linewidth=3.0,label="Change in y")
plt.plot(x,10*x-8)
plt.plot()
File "C:\Users\zhaoxin_pc\.spyder-py3\temp.py", line 9
%matplotlib inline
^
IndentationError: unexpected indent