def METHOD_NAME(self):
    x = y = [1, 2, 3]
    s = list("abc")
    m = Text(halign="right", fontsize=10, offset=.5)
    p = Plot(x, y, text=s).add(m).plot()
    ax = p._figure.axes[0]
    expected_shift_matrix = np.zeros((3, 3))
    expected_shift_matrix[0, -1] = -m.offset * ax.figure.dpi / 72
    ax_trans = ax.transData.get_matrix()
    for text in self.get_texts(ax):
        shift_matrix = text.get_transform().get_matrix() - ax_trans
        assert_array_almost_equal(shift_matrix, expected_shift_matrix)