def get_text_mark(ttree):
if ttree._orient in ["<STR_LIT:right>"]:<EOL><INDENT>angle = <NUM_LIT:0.><EOL>ypos = ttree.verts[-<NUM_LIT:1>*len(ttree.tree):, <NUM_LIT:1>]<EOL>if ttree._kwargs["<STR_LIT>"]:<EOL><INDENT>xpos = [ttree.verts[:, <NUM_LIT:0>].max()] * len(ttree.tree)<EOL>start = xpos<EOL>finish = ttree.verts[-<NUM_LIT:1>*len(ttree.tree):, <NUM_LIT:0>]<EOL>align_edges = np.array([(i, i+len(xpos)) for i in range(len(xpos))])<EOL>align_verts = np.array(zip(start, ypos) + zip(finish, ypos))<EOL><DEDENT>else:<EOL><INDENT>xpos = ttree.verts[-<NUM_LIT:1>*len(ttree.tree):, <NUM_LIT:0>]<EOL><DEDENT><DEDENT>elif ttree._orient in ['<STR_LIT>']:<EOL><INDENT>angle = -<NUM_LIT><EOL>xpos = ttree.verts[-<NUM_LIT:1>*len(ttree.tree):, <NUM_LIT:0>]<EOL>if ttree._kwargs["<STR_LIT>"]:<EOL><INDENT>ypos = [ttree.verts[:, <NUM_LIT:1>].min()] * len(ttree.tree)<EOL>start = ypos<EOL>finish = ttree.verts[-<NUM_LIT:1>*len(ttree.tree):, <NUM_LIT:1>]<EOL>align_edges = np.array([(i, i+len(ypos)) for i in range(len(ypos))])<EOL>align_verts = np.array(zip(xpos, start) + zip(xpos, finish))<EOL><DEDENT>else:<EOL><INDENT>ypos = ttree.verts[-<NUM_LIT:1>*len(ttree.tree):, <NUM_LIT:1>]<EOL><DEDENT><DEDENT>table = toyplot.data.Table()<EOL>table['<STR_LIT:x>'] = toyplot.require.scalar_vector(xpos)<EOL>table['<STR_LIT:y>'] = toyplot.require.scalar_vector(ypos, table.shape[<NUM_LIT:0>])<EOL>table['<STR_LIT:text>'] = toyplot.broadcast.pyobject(ttree.get_tip_labels(), table.shape[<NUM_LIT:0>])<EOL>table["<STR_LIT>"] = toyplot.broadcast.scalar(angle, table.shape[<NUM_LIT:0>])<EOL>table["<STR_LIT>"] = toyplot.broadcast.scalar(<NUM_LIT:1.0>, table.shape[<NUM_LIT:0>])<EOL>table["<STR_LIT:title>"] = toyplot.broadcast.pyobject(None, table.shape[<NUM_LIT:0>])<EOL>style = toyplot.style.require(ttree._kwargs["<STR_LIT>"],<EOL>allowed=toyplot.style.allowed.text)<EOL>default_color = [toyplot.color.black]<EOL>color = toyplot.color.broadcast(<EOL>colors=ttree._kwargs["<STR_LIT>"],<EOL>shape=(table.shape[<NUM_LIT:0>], <NUM_LIT:1>),<EOL>default=default_color,<EOL>)<EOL>table["<STR_LIT>"] = color[:, <NUM_LIT:0>]<EOL>text_mark = toyplot.mark.Text(<EOL>coordinate_axes=['<STR_LIT:x>', '<STR_LIT:y>'],<EOL>table=table,<EOL>coordinates=['<STR_LIT:x>', '<STR_LIT:y>'],<EOL>text=["<STR_LIT:text>"],<EOL>angle=["<STR_LIT>"],<EOL>fill=["<STR_LIT>"],<EOL>opacity=["<STR_LIT>"],<EOL>title=["<STR_LIT:title>"],<EOL>style=style,<EOL>annotation=True,<EOL>filename=None<EOL>)<EOL>return text_mark<EOL>
makes a simple Text Mark object