Simple Curves

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

import numpy as np

import matplotlib.pyplot as plt


x = np.arange(0., 1., 0.01)
plt.ylim(0.,2)
def f(t,k): return 2*k*x+1
plt.plot(x, f(x,1), 'k--', x, f(x,2), '-.')
plt.grid(True)
plt.xlabel('x axis')
plt.ylabel('y axis')
plt.show()

You might also like