landlab.plot.graph¶
- plot_graph(graph, at='node,link,patch', with_id=True, axes=None)[source]¶
Plot elements of a graph.
- Parameters:
graph (graph-like) – A landlab graph-like object.
at (str or iterable of str) – Comma-separated list of elements to plot.
with_id (str, iterable of str or bool) – Indicate which elements should be plotted with their corresponding id. Either a comma-separated list of grid elements or
Trueto include ids for all elements ofFalsefor no elements.axes (, optional) – Add the plot to an existing matplotlib
Axes, otherwise, create a new one.
- Returns:
The
Axescontaining the plot.- Return type:
Axes