helios.backends.fury.draw

FURY NetworkDraw

List of Objects

NetworkDraw

class helios.backends.fury.draw.NetworkDraw(positions, edges=None, colors=0, 1, 0, scales=1, marker='o', node_edge_width=0.0, node_opacity=0.8, node_edge_opacity=1, node_edge_color=255, 255, 255, edge_line_color=1, 1, 1, edge_line_opacity=0.5, edge_line_width=1, better_performance=False, write_frag_depth=True, window_size=400, 400, showm=None, **kwargs)[source]

Bases: helios.backends.fury.actors.NetworkSuperActor

This object is responsible to deal with the drawing of the network.

Variables

showm (ShowManager) – A ShowManager instance from FURY fury.gl/fury.window.html#showmanager

Parameters
  • positions (ndarray) – Array of the nodes positions.

  • edges (ndarray, optional) – Array of the edges.

  • colors (tuple or ndarray, optional) – Tuple of the colors of the nodes.

  • scales (float or ndarray, optional) – Scaling factor for the node.

  • marker (str or list, optional) – Marker for the nodes.

  • node_edge_width (float or array, optional) – Width of the edges around the nodes.

  • node_opacity (float or array, optional) – Opacity of the nodes.

  • node_edge_opacity (float or array, optional) – Opacity of the edges.

  • node_edge_color (tuple or ndarray, optional) – Color of the edges around the nodes.

  • edge_line_color (tuple or ndarray, optional) – Color of the edges.

  • edge_line_opacity (float or ndarray, optional) – Opacity of the edges.

  • edge_line_width (float or ndarray, optional) – Width of the edges.

  • better_performance (bool, optional) – Improves the performance of the draw function.

  • write_frag_depth (bool, optional) – Writes in the depth buffer.

  • window_size (tuple, optional) – Size of the window.

  • showm (ShowManager, optional) –

    Fury ShowManager instance. fury.gl/fury.window.html#showmanager

refresh()[source]

This will refresh the FURY window instance.

Call this method every time that you change any property in the network like positions, colors etc