py4cytoscape.style_defaults.set_node_custom_ring_chart

set_node_custom_ring_chart(columns, colors=None, start_angle=0.0, hole_size=0.5, slot=1, style_name=None, base_url='http://127.0.0.1:1234/v1')[source]

Set Node Custom Ring Chart.

Makes a ring chart per node using specified node table columns by setting a default custom graphic style.

Parameters
  • columns (list) – List of node column names to be displayed, in order.

  • colors (list) – List of colors to be matched with columns or with

  • start_angle (float) – Angle to start filling ring. Default is 0.0.

  • hole_size (float) – Size of hole in ring. Ranges 0-1. Default is 0.5.

  • slot (int) – Which custom graphics slot to modify. Slots 1-9 are available for independent charts, gradients and images. Default is 1.

  • style_name (str) – Name of style; default is “default” style

  • base_url (str) – Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of py4cytoscape.

Returns

’’

Return type

str

Raises
  • CyError – if style name or slot doesn’t exist

  • requests.exceptions.RequestException – if can’t connect to Cytoscape or Cytoscape returns an error

Examples

>>> set_node_custom_ring_chart(['AverageShortestPath', 'BetweennessCentrality'], style_name='galFiltered Style')
''
>>> set_node_custom_ring_chart(['AverageShortestPath', 'BetweennessCentrality'], colors=['#FF00FF', '#00FF00'], slot=2, style_name='galFiltered Style')
''
>>> set_node_custom_ring_chart(['AverageShortestPath', 'BetweennessCentrality'], colors=['red', 'green'], slot=2, style_name='galFiltered Style')
''