Skip to content

Edge "label_dist" not working #508

Open
@arjunr2

Description

@arjunr2

Describe the bug
Setting the "label_dist" on Edge doesn't change rendering

To reproduce

from igraph import *
import math

if __name__ == '__main__':
    g = Graph(directed=True)
    g.add_vertices(4)
    g.add_edges([(2,0), (1,3), (3,1), (0, 1), (1,0)])
    g.vs["name"] = ["A", "B", "C", "D"]
    g.vs["label"] = g.vs["name"]
    #
    g.es["label"] = ["c1", "c2", "c3", "c4"]
    g.es["curved"] = 0.2
    g.es["label_color"] = "blue"
    g.es["label_angle"] = math.pi * 0.5
    # This Feature doesn't work
    g.es["label_dist"] = 2

    visual_style = {}
    visual_style["vertex_size"] = 80
    visual_style["bbox"] = (1000, 700)
    visual_style["margin"] = 60

    print(g)
    layout = g.layout("kk")
    plot(g, **visual_style, layout=layout)

Version information
igraph 0.9.9 installed using pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    wishlistFeature request that has not been chosen for implementation yet; vote or comment to prioritize it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions