isual_edge.background,
                        edgecolor=&#39;none&#39;,
                    )
                    text_kwargs[&#39;ha&#39;] = &#39;center&#39;
                    text_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[&#