def METHOD_NAME(self, horiz, font):
    # Write the <c:txPr> element for legends.
    if font and font.get("rotation"):
        rotation = font["rotation"]
    else:
        rotation = None
    self._xml_start_tag("c:txPr")
    # Write the a:bodyPr element.
    self._write_a_body_pr(rotation, horiz)
    # Write the a:lstStyle element.
    self._write_a_lst_style()
    # Write the a:p element.
    self._write_a_p_legend(font)
    self._xml_end_tag("c:txPr")