plt.plot(t,wr,'k',linewidth=2,label='Reference')
plt.plot(t,d,'k--',linewidth=1.5,label='Disturbance')
plt.plot(t,yOL,'r',linewidth=1.5,label='Open Loop')
plt.plot(t,yCL,'b',linewidth=1.5,label='Closed Loop')
plt.xlabel('Time')
plt.ylabel('Speed')
plt.legend(loc="upper left", bbox_to_anchor=(1,1))
plt.show()