You're right. I think changing this line to
```
coords = np.linspace(min_val, max_val, points)
```
would probably do the trick.