# importing libraries
import matplotlib.pyplot as plt
import numpy as np
# defining the x values
x = np.linspace(-10, 10, 100)
# defining the equation
y = 2*x - 1
# creating the plot
plt.plot(x, y)
# labeling the axes and title
plt.xlabel('x', fontsize = 15)
plt.ylabel('y', fontsize = 15)
plt.title('Graph of y=2x-1', fontsize = 15)
# displaying the plot
plt.show()