_kwargs[&#39;va&#39;] = &#39;center&#39;

                if visual_edge.align_label:
                    # Rotate the text to align with the edge
                    rotation = edge_drawer.get_label_rotation(
                        visual_edge, src_vertex, dest_vertex,
                    )
                    text_kwargs[&#39;rotation&#39;] = rotation

                ax.text(
                    x,
                    y,
                    label,
                    fontsize=visual_edge.label_size,
   