# Simple line and point

```
import pylab
import numpy as np

# draw x^2
x = np.linspace(-5, 5) 
y = np.power(x, 2)
pylab.plot(x, y, '-k')

# draw a point
pylab.plot(2, 4, 'bo')

pylab.show()
```

![](https://678042047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Le4Kw7aXTv8Say69hfT%2F-Le4Ky20EiLyi7Fs0_LO%2F-Le4Kzv6iZKfRA6uu8Hw%2Fx%5E2.png?generation=1557015298630908\&alt=media)
