Skip to content

Use any Glyph to draw network nodes #14631

@rambip

Description

@rambip

Problem description

In the documentation, there is no example of using something else than models.Ellipse. But it would be very useful to use other shapes, for example model.Block or model.Quad.
In addition, the current layout_provider does not help to get a mental model of how to do it.
Indeed, if the user tries to put the coordinate data directly into the node renderer without specifying a layout_provider, he will get an error.

Feature description

A way to specify how the graph coordinates are translated into the glyph, and a corresponding example in the docs.

Potential alternatives

At least, a way to turn off the layout_provider and put directly the coordinates in node_renderer.data_source.data. Currently, if layout_provider is empty, I get a blank figure in any case.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions