import matplotlib.pyplot as plt import numpy as np x = np.arange(1,21) y1 = np.array([1,2,3,4,5]) y1 = np.tile(y1,4) y2 = np.array([10,12,14,16]) y2 = np.repeat(y2, 5) plt.step(x,y1, where='post',label ='VAR1') plt.step(x,y2,where = 'post',label = 'VAR2') plt.xticks([]) plt.yticks([]) plt.xlabel('time') plt.ylabel('value') plt.legend() plt.title("How VAR2 Works") plt.show()