Parameters: |
- network (
Graph or subclass) – The graph/network to plot.
- nsize (float, array of float or string, optional (default: “total-degree”)) – Size of the nodes as a percentage of the canvas length. Otherwise, it
can be a string that correlates the size to a node attribute among
“in/out/total-degree”, or “betweenness”.
- ncolor (float, array of floats or string, optional (default: 0.5)) – Color of the nodes; if a float in [0, 1], position of the color in the
current palette, otherwise a string that correlates the color to a node
attribute among “in/out/total-degree”, “betweenness” or “group”.
- nshape (char or array of chars, optional (default: “o”)) – Shape of the nodes (see Matplotlib markers).
- nborder_color (char, float or array, optional (default: “k”)) – Color of the node’s border using predefined Matplotlib colors).
or floats in [0, 1] defining the position in the palette.
- nborder_width (float or array of floats, optional (default: 0.5)) – Width of the border in percent of canvas size.
- esize (float, str, or array of floats, optional (default: 0.5)) – Width of the edges in percent of canvas length. Available string values
are “betweenness” and “weight”.
- ecolor (str, char, float or array, optional (default: “k”)) – Edge color. If ecolor=”groups”, edges color will depend on the source
and target groups, i.e. only edges from and toward same groups will
have the same color.
- max_esize (float, optional (default: 5.)) – If a custom property is entered as esize, this normalizes the edge
width between 0. and max_esize.
- decimate (int, optional (default: keep all connections)) – Plot only one connection every decimate. Use -1 to hide all edges.
- spatial (bool, optional (default: True)) – If True, use the neurons’ positions to draw them.
- restrict_sources (str or list, optional (default: all)) – Only draw edges starting from a restricted set of source nodes.
- restrict_targets (str or list, optional (default: all)) – Only draw edges ending on a restricted set of target nodes.
- show_environment (bool, optional (default: True)) – Plot the environment if the graph is spatial.
- fast (bool, optional (default: False)) – Use a faster algorithm to plot the edges. This method leads to less
pretty plots and zooming on the graph will make the edges start or
ending in places that will differ more or less strongly from the actual
node positions.
- size (tuple of ints, optional (default: (600,600))) – (width, height) tuple for the canvas size (in px).
- dpi (int, optional (default: 75)) – Resolution (dot per inch).
- show (bool, optional (default: True)) – Display the plot immediately.
|