import matplotlib.pyplot as plt
import numpy as np

p0 = np.array([[2, 4],[2, 3],[3,3]]).T
t = np.array([[1, -2]]).T
p1 = p0 + t

ax1 = plt.subplot(1, 1, 1)
plt.plot(p0[0], p0[1], 'ko-')
plt.plot(p1[0], p1[1], 'ro-')
ax1.annotate('', xy=(float(p1[0,1]), float(p1[1,1])), xytext=(float(p0[0,1]), float(p0[1,1])),
             arrowprops=dict(facecolor='black', shrink=0.1, width=0.1, headlength=5, headwidth=5), )
ax1.annotate('T', xy=(float(0.5 * p0[0,1] + 0.5 * p1[0,1]) + 0.1, float(0.5 * p0[1,1] + 0.5 * p1[1,1]) + 0.1))
ax1.annotate('p', xy=(float(p0[0,1] + 0.15), float(p0[1,1] + 0.15)))
ax1.annotate('p*', xy=(float(p1[0,1] + 0.15), float(p1[1,1] + 0.15)))
plt.axis((0, 5, 0, 5))
ax1.set_aspect('equal')
plt.show()