astrovascpy.plotting

Functions

plot_on_graph(nx_graph, graph, pos[, ...])

Plot data on a graph.

plot_pressure(graph, params, radii, node_sol)

Plot the pressure on the graph.

plot_resistance(graph, params, radii[, ...])

Plot the resistance on the graph.

astrovascpy.plotting.plot_on_graph(nx_graph, graph, pos, node_key='pressure', edge_key='flow')

Plot data on a graph.

astrovascpy.plotting.plot_pressure(graph, params, radii, node_sol, vmin=None, vmax=None, node_label=False, cmap='Blues')

Plot the pressure on the graph.

Parameters:
  • graph (vasculatureAPI.PointVasculature) – graph containing point vasculature skeleton.

  • radii (float) – average radius per section.

  • params (float) – changing parameters.

Returns:

pressure at each node.

Return type:

float

astrovascpy.plotting.plot_resistance(graph, params, radii, edge_vmin=None, edge_vmax=None, edge_label=False, edge_cmap=<matplotlib.colors.ListedColormap object>)

Plot the resistance on the graph.

Parameters:
  • graph (vasculatureAPI.PointVasculature) – graph containing point vasculature skeleton.

  • radii (float) – average radius per section.

  • params (float) – changing parameters.

  • node_sol

Returns:

resistance at each edge.

Return type:

float