import matplotlib.pyplot as plt
import numpy as np

xpoints = [-3, -2, -1, 0, 1, 2, 3]
ypoints = [ i * 2 - 1 for i in xpoints]

# y = 2 * x - 1

plt.plot(xpoints, ypoints)
plt.show()